Skip to content

Commit 01f8433

Browse files
committed
Fix string value formatting for query string
1 parent 50f0c86 commit 01f8433

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/sentry/search/eap/occurrences/search_executor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,7 @@ def _format_single_value(value: str | int | float | datetime) -> str:
173173

174174

175175
def _format_string_value(s: str) -> str:
176-
# Wildcard values pass through as-is for the SearchResolver to handle
177-
if "*" in s:
178-
return s
179-
180-
# Quote strings containing spaces or special characters
176+
# Quote strings containing spaces or special characters.
181177
if " " in s or '"' in s or "," in s or "(" in s or ")" in s:
182178
escaped = s.replace("\\", "\\\\").replace('"', '\\"')
183179
return f'"{escaped}"'

0 commit comments

Comments
 (0)