kopia lustrzana https://github.com/Stopka/fedicrawl
5 wiersze
164 B
TypeScript
5 wiersze
164 B
TypeScript
|
export const extractTags = (text:string):string[] => {
|
||
|
return (text.match(/#[a-z0-9_]+/gi) || [])
|
||
|
.map(hashtag => hashtag.substring(1).toLowerCase()) || []
|
||
|
}
|