Skip to content

Commit c3cf7d7

Browse files
committed
Restored the default lunr tokenizer
Signed-off-by: Hofi <[email protected]>
1 parent 5c9097b commit c3cf7d7

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

_js/custom/custom-init.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
Custom js init stuff
33
========================================================================== */
44

5-
$(function () {
6-
7-
// Override the default lunr tokenizer options, as a quick fix added _ to the list to get ignored the differences like option-1 and option_1
8-
lunr.tokenizer.separator = /[\s\-_]+/
9-
10-
});
5+
// $(function () {
6+
//
7+
// // Override the default lunr tokenizer options, as a quick fix added _ to the list to get ignored the differences like option-1 and option_1
8+
// //lunr.tokenizer.separator = /[\s\-_]+/
9+
// lunr.tokenizer.separator = /[\s]+/
10+
//
11+
// });

_js/main.min.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8822,10 +8822,6 @@ $(function() {
88228822
});
88238823
});
88248824

8825-
$(function() {
8826-
lunr.tokenizer.separator = /[\s]+/;
8827-
});
8828-
88298825
$(function() {
88308826
$("#main").fitVids();
88318827
$(".author__urls-wrapper").find("button").on("click", function() {

0 commit comments

Comments
 (0)