Skip to content

Commit

Permalink
fix: update regex to allow spaces in slash command name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Dec 31, 2024
1 parent 76261b3 commit 363f6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synthesis/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 363f6ce

Please sign in to comment.