feat: better layout in a lot of places
This commit is contained in:
@@ -15,3 +15,15 @@ export function safeFileName(inputString: string): string {
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
export function extractHashTags(inputString: string) {
|
||||
const hashtags = [];
|
||||
|
||||
for (
|
||||
const [hashtag] of inputString.matchAll(/(?<!\()\B(\#[a-zA-Z\-]+\b)(?!;)/g)
|
||||
) {
|
||||
hashtags.push(hashtag.replace(/\#/g, ""));
|
||||
}
|
||||
|
||||
return hashtags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user