We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55c9a5 commit a0dafa6Copy full SHA for a0dafa6
core/util/regexValidator.ts
@@ -150,16 +150,6 @@ export function prepareQueryForRipgrep(query: string): {
150
query: string;
151
warning?: string;
152
} {
153
- // Check if it looks like a literal search that should be escaped
154
- if (looksLikeLiteralSearch(query)) {
155
- return {
156
- query: escapeLiteralForRegex(query),
157
- warning:
158
- "Query contained special regex characters and was escaped for literal text search",
159
- };
160
- }
161
-
162
- // Otherwise validate and sanitize as regex
163
const validation = validateAndSanitizeRegex(query);
164
165
return {
0 commit comments