Commit bd3e4a2
committed
frontend: advancedSearch: Add escaping for backslashes
This change ensures that backslashes are properly escaped in addition to
double quotes. The fix involves modifying the replace logic to handle
both backslashes and double quotes by chaining two replace calls: the
first to escape backslashes and the second to escape double quotes.1 parent 98c4121 commit bd3e4a2
File tree
2 files changed
+14
-1
lines changed- frontend/src/components/advancedSearch/utils
2 files changed
+14
-1
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
101 | 114 | | |
102 | 115 | | |
103 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments