feat: better layout in a lot of places

This commit is contained in:
2023-08-02 01:58:03 +02:00
parent ff3e7f6667
commit 3cfa2274a8
23 changed files with 208 additions and 110 deletions

View File

@@ -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;
}