Skip to content

Commit

Permalink
Fixes slow regexp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed May 31, 2023
1 parent 0c6348a commit 292c240
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 292c240

Please sign in to comment.