We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9e731 commit 3c70458Copy full SHA for 3c70458
apps/server/src/extractor.ts
@@ -12,7 +12,7 @@ const tokenizer = await new Promise<kuromoji.Tokenizer<kuromoji.IpadicFeatures>>
12
const onlySpecialCharactersRegex = /^[\s!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]+$/;
13
const onlyNumbersRegex = /^\d+$/;
14
const urlRegex = /https?:\/\/\S+/g;
15
-const mentionRegex = /!\{"type":"(?:user|channel)","raw":"(.+)","id":"[a-z0-9\-]+"\}/g;
+const mentionRegex = /!\{"type":"(?:user|channel)","raw":"(.+?)","id":"[a-z0-9\-]+"\}/g;
16
17
export const extractWords = async (text: string) => {
18
const urlStripped = text.replace(urlRegex, '');
0 commit comments