Commit a134b35
authored
searcher.js: handle missing RegExp.escape (#1442)
That API is more recent than I expected, so there is still a small
minority of browsers that may be missing it.
But this escaping is only needed when the search context special chars,
which too is a minority of searches.
Given that, I think it's better to just not escape if support is
missing.
cc @st00121 parent 386baad commit a134b35
File tree
2 files changed
+5
-8
lines changed- lib/rdoc/generator/template/json_index/js
- test/rdoc
2 files changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 19 | | |
27 | 20 | | |
28 | 21 | | |
| |||
0 commit comments