Skip to content

Commit

Permalink
Update lunr.zhcn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-xjh authored Oct 12, 2018
1 parent f6f6a3f commit 968536e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lunr.zhcn.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* can return a function as the exported value.
*/
return function(lunr) {
if (void 0 === root) throw new Error("Lunr is not present. Please include / require Lunr before this script.");
if (void 0 === root.stemmerSupport) throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");


/*
Thai tokenization is the same to Japanense, which does not take into account spaces.
So, it uses the same logic to assign tokenization function due to different Lunr versions.
Expand Down

0 comments on commit 968536e

Please sign in to comment.