Search - Map all \u unicode escapes to \x because only that format is supported by both the Rust regex engine and PCRE2

This commit is contained in:
Rob Lourens
2019-07-02 19:58:39 -07:00
parent 57cb739976
commit b0a519d621
@@ -410,10 +410,10 @@ function getRgArgs(query: TextSearchQuery, options: TextSearchOptions): string[]
if ((<IExtendedExtensionSearchOptions>options).usePCRE2) {
args.push('--pcre2');
}
if (query.isRegExp) {
pattern = unicodeEscapesToPCRE2(pattern);
}
if (query.isRegExp) {
pattern = unicodeEscapesToPCRE2(pattern);
}
// Allow $ to match /r/n