Explorar el Código

Merge pull request #3992 from microsoft/hediet/b/complex-silverfish

Fixes slow regexp issue
Henning Dieterichs hace 2 años
padre
commit
c84c0cb8f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      website/src/website/pages/playground/PlaygroundModel.ts

+ 1 - 1
website/src/website/pages/playground/PlaygroundModel.ts

@@ -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