mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Merge pull request #3992 from microsoft/hediet/b/complex-silverfish
Fixes slow regexp issue
This commit is contained in:
commit
c84c0cb8f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue