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

Fixes slow regexp issue
pull/3994/head v0.39.0-dev.20230601
Henning Dieterichs 2 years ago committed by GitHub
commit c84c0cb8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save