fix run syntax highlight

This commit is contained in:
LenAnderson
2024-06-25 23:18:48 -04:00
parent ccbc78ed41
commit 676472f13d

View File

@ -217,10 +217,10 @@ export class SlashCommandParser {
function getQuotedRunRegex() {
try {
return new RegExp('(".+?(?<!\\\\)")|(\\S+?)');
return new RegExp('(".+?(?<!\\\\)")|(\\S+?)(\\||$|\\s)');
} catch {
// fallback for browsers that don't support lookbehind
return /(".+?")|(\S+?)/;
return /(".+?")|(\S+?)(\||$|\s)/;
}
}