mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user