Fixes slow regexp issue

This commit is contained in:
Henning Dieterichs 2023-05-31 17:19:52 +02:00
parent 0c6348a71d
commit 292c2400a0
No known key found for this signature in database
GPG key ID: 771381EFFDB9EC06

View file

@ -247,7 +247,7 @@ export class PlaygroundModel {
const regexp = new RegExp(
"(\\b" +
escapeRegexpChars(codeStringName) +
":[^\\w`]*`)([^`\\\\]|\\n|\\\\\\\\|\\\\`)*`"
":[^\\w`]*`)([^`\\\\\\n]|\\n|\\\\\\\\|\\\\|\\$`)*`"
);
const js = this.js;
const str = value