@lvce-editor/find-widget-worker 1.7.0 → 1.8.0
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.
|
@@ -1137,11 +1137,9 @@ const findRegexMatches = (lines, regex) => {
|
|
|
1137
1137
|
return new Uint32Array(matches);
|
|
1138
1138
|
};
|
|
1139
1139
|
|
|
1140
|
-
// copied from https://github.com/microsoft/vscode/tree/main/src/vs/base/common/strings.ts by Microsoft (License MIT)
|
|
1141
|
-
|
|
1142
|
-
const RE_ESCAPE = /[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g;
|
|
1143
1140
|
const escapeRegExpCharacters = value => {
|
|
1144
|
-
|
|
1141
|
+
// @ts-ignore
|
|
1142
|
+
return RegExp.escape(value);
|
|
1145
1143
|
};
|
|
1146
1144
|
|
|
1147
1145
|
const regexFlags = 'gi';
|