Browse Source

ref(replays): escape * character in selector search (#57495)

<img width="1214" alt="SCR-20231004-klxv"
src="https://github.com/getsentry/sentry/assets/56095982/b1cec9d7-5605-4db8-9d64-388e2634f6bb">
Michelle Zhang 1 year ago
parent
commit
e721634cb6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/views/replays/deadRageClick/selectorTable.tsx

+ 2 - 1
static/app/views/replays/deadRageClick/selectorTable.tsx

@@ -52,7 +52,8 @@ export function transformSelectorQuery(selector: string) {
     .replaceAll('"', `\\"`)
     .replaceAll('aria=', 'aria-label=')
     .replaceAll('testid=', 'data-test-id=')
-    .replaceAll(':', '\\:');
+    .replaceAll(':', '\\:')
+    .replaceAll('*', '\\*');
 }
 interface Props {
   clickCountColumns: {key: string; name: string}[];