Skip to content

Commit

Permalink
Restored the default lunr tokenizer
Browse files Browse the repository at this point in the history
Signed-off-by: Hofi <hofione@gmail.com>
  • Loading branch information
HofiOne committed May 9, 2024
1 parent 5c9097b commit c3cf7d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
13 changes: 7 additions & 6 deletions _js/custom/custom-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
Custom js init stuff
========================================================================== */

$(function () {

// 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
lunr.tokenizer.separator = /[\s\-_]+/

});
// $(function () {
//
// // 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
// //lunr.tokenizer.separator = /[\s\-_]+/
// lunr.tokenizer.separator = /[\s]+/
//
// });
4 changes: 0 additions & 4 deletions _js/main.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -8822,10 +8822,6 @@ $(function() {
});
});

$(function() {
lunr.tokenizer.separator = /[\s]+/;
});

$(function() {
$("#main").fitVids();
$(".author__urls-wrapper").find("button").on("click", function() {
Expand Down

0 comments on commit c3cf7d7

Please sign in to comment.