mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix run syntax highlight
This commit is contained in:
@ -217,10 +217,10 @@ export class SlashCommandParser {
|
|||||||
|
|
||||||
function getQuotedRunRegex() {
|
function getQuotedRunRegex() {
|
||||||
try {
|
try {
|
||||||
return new RegExp('(".+?(?<!\\\\)")|(\\S+?)');
|
return new RegExp('(".+?(?<!\\\\)")|(\\S+?)(\\||$|\\s)');
|
||||||
} catch {
|
} catch {
|
||||||
// fallback for browsers that don't support lookbehind
|
// fallback for browsers that don't support lookbehind
|
||||||
return /(".+?")|(\S+?)/;
|
return /(".+?")|(\S+?)(\||$|\s)/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user