diff --git a/public/scripts/slash-commands/SlashCommandBrowser.js b/public/scripts/slash-commands/SlashCommandBrowser.js index 6b3cb7816..916f65441 100644 --- a/public/scripts/slash-commands/SlashCommandBrowser.js +++ b/public/scripts/slash-commands/SlashCommandBrowser.js @@ -11,7 +11,7 @@ export class SlashCommandBrowser { renderInto(parent) { if (!this.dom) { - const queryRegex = /(?:^|\s+)([^\s"]\S*?)(?:\s+|$)|(?:^|\s+)"(.*?)(?:"|$)(?:\s+|$)/; + const queryRegex = /(?:(?:^|\s+)([^\s"][^\s]*?)(?:\s+|$))|(?:(?:^|\s+)"(.*?)(?:"|$)(?:\s+|$))/; const root = document.createElement('div'); { this.dom = root; const search = document.createElement('div'); {