From cf770c39729301d2053387919582675beb6ed9f8 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/synthesis/clean.ts b/src/synthesis/clean.ts index d1e571d3..db243511 100644 --- a/src/synthesis/clean.ts +++ b/src/synthesis/clean.ts @@ -8,7 +8,8 @@ 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],