فهرست منبع

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

Fixes slow regexp issue
Henning Dieterichs 2 سال پیش
والد
کامیت
c84c0cb8f9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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