Skip to content

Commit

Permalink
Merge pull request #3992 from microsoft/hediet/b/complex-silverfish
Browse files Browse the repository at this point in the history
Fixes slow regexp issue
  • Loading branch information
hediet committed May 31, 2023
2 parents 4d4f13c + 292c240 commit c84c0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/website/pages/playground/PlaygroundModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c84c0cb

Please sign in to comment.