@codingame/monaco-vscode-search-service-override 7.0.3 → 7.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-search-service-override",
3
- "version": "7.0.3",
3
+ "version": "7.0.7",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -29,6 +29,6 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "vscode": "npm:@codingame/monaco-vscode-api@7.0.3"
32
+ "vscode": "npm:@codingame/monaco-vscode-api@7.0.7"
33
33
  }
34
34
  }
@@ -463,6 +463,12 @@ let SearchWidget = class SearchWidget extends Widget {
463
463
  if (!(this.searchInput?.getRegex())) {
464
464
  return null;
465
465
  }
466
+ try {
467
+ ( (new RegExp(value, 'u')));
468
+ }
469
+ catch (e) {
470
+ return { content: e.message };
471
+ }
466
472
  return null;
467
473
  }
468
474
  onSearchInputChanged() {