mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Fixes slow regexp issue
This commit is contained in:
parent
0c6348a71d
commit
292c2400a0
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ export class PlaygroundModel {
|
||||||
const regexp = new RegExp(
|
const regexp = new RegExp(
|
||||||
"(\\b" +
|
"(\\b" +
|
||||||
escapeRegexpChars(codeStringName) +
|
escapeRegexpChars(codeStringName) +
|
||||||
":[^\\w`]*`)([^`\\\\]|\\n|\\\\\\\\|\\\\`)*`"
|
":[^\\w`]*`)([^`\\\\\\n]|\\n|\\\\\\\\|\\\\|\\$`)*`"
|
||||||
);
|
);
|
||||||
const js = this.js;
|
const js = this.js;
|
||||||
const str = value
|
const str = value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue