From 363f6ce9477a29c326c65c95f91ca3327c08759b Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Tue, 31 Dec 2024 12:19:36 +0000 Subject: [PATCH] fix: update regex to allow spaces in slash command name --- src/synthesis/clean.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/synthesis/clean.ts b/src/synthesis/clean.ts index d1e571d3..b1bca457 100644 --- a/src/synthesis/clean.ts +++ b/src/synthesis/clean.ts @@ -8,7 +8,7 @@ const parser = SimpleMarkdown.parserFor( ...rulesExtended, command: { order: rulesExtended.strong.order, - match: (source: string) => /^<\/([\w-]+):(\d{17,20})>/.exec(source), + match: (source: string) => /^<\/([\w-]+(?: [\w-]+)?(?: [\w-]+)?):(\d{17,20})>/.exec(source), parse: (capture: Capture) => ({ name: capture[1], id: capture[2],