Commit 9eac3fe
committed
fix: search missing results due to escaping
When you use shell-escape, it wraps the query in single quotes, so "Toggle Goyo" becomes "'Toggle Goyo'", and then you interpolate that into a regex pattern, which doesn't match anything.
Instead of escaping the query as a shell argument, you should escape it for use inside the regex pattern, and interpolate it directly.1 parent b577163 commit 9eac3fe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments