From 48ae6c9e6c63d8fbc569213eb912e3a897a00593 Mon Sep 17 00:00:00 2001 From: Marie Date: Mon, 25 Dec 2023 19:49:29 +0100 Subject: [PATCH] Add U+2063 as seperator to hashtag --- src/internal/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/parser.ts b/src/internal/parser.ts index 6dc7531..7c36803 100644 --- a/src/internal/parser.ts +++ b/src/internal/parser.ts @@ -579,7 +579,7 @@ export const language = P.createLanguage({ hashtag: r => { const mark = P.str('#'); const hashTagChar = P.seq([ - P.notMatch(P.alt([P.regexp(/[ \u3000\t.,!?'"#:/[\]【】()「」()<>]/), space, newLine])), + P.notMatch(P.alt([P.regexp(/[ \u3000\t., \u2063\t.,!?'"#:/[\]【】()「」()<>]/), space, newLine])), P.char, ], 1); const innerItem: P.Parser = P.lazy(() => P.alt([