Merge pull request #3992 from microsoft/hediet/b/complex-silverfish

Fixes slow regexp issue
pull/3994/head v0.39.0-dev.20230601
Henning Dieterichs 2023-05-31 17:37:59 +02:00 committed by GitHub
commit c84c0cb8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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