Skip to content

Commit 3c70458

Browse files
committed
🍪 🥦 さらに修正
1 parent 8a9e731 commit 3c70458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/extractor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const tokenizer = await new Promise<kuromoji.Tokenizer<kuromoji.IpadicFeatures>>
1212
const onlySpecialCharactersRegex = /^[\s!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]+$/;
1313
const onlyNumbersRegex = /^\d+$/;
1414
const urlRegex = /https?:\/\/\S+/g;
15-
const mentionRegex = /!\{"type":"(?:user|channel)","raw":"(.+)","id":"[a-z0-9\-]+"\}/g;
15+
const mentionRegex = /!\{"type":"(?:user|channel)","raw":"(.+?)","id":"[a-z0-9\-]+"\}/g;
1616

1717
export const extractWords = async (text: string) => {
1818
const urlStripped = text.replace(urlRegex, '');

0 commit comments

Comments
 (0)