Commit 171120d
authored
searcher.js: Escape characters when building regexps (ruby#1397)
Otherwise characters with regexp meaning ~like `.` won't behave as
expected~.
Actually `.` when inside `[]` doesn't have a special meaning, however
`\` and a few other break the search.1 parent e4d727f commit 171120d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments