Merge pull request #3992 from microsoft/hediet/b/complex-silverfish
Fixes slow regexp issuepull/3994/head v0.39.0-dev.20230601
commit
c84c0cb8f9
|
@ -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…
Reference in New Issue