Skip to content

Commit

Permalink
able to use wordcut on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
keerati committed Jun 13, 2017
1 parent 1ab3028 commit 05f1899
Show file tree
Hide file tree
Showing 2 changed files with 6,709 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lunr.th.js
Expand Up @@ -83,7 +83,7 @@
lunr.th.trimmer = lunr.trimmerSupport.generateTrimmer(lunr.th.wordCharacters);
lunr.Pipeline.registerFunction(lunr.th.trimmer, 'trimmer-th');

var segmenter = require('wordcut');
var segmenter = lunr.wordcut;
segmenter.init();
lunr.th.tokenizer = function (obj) {
//console.log(obj);
Expand Down
6,708 changes: 6,708 additions & 0 deletions wordcut.js

Large diffs are not rendered by default.

0 comments on commit 05f1899

Please sign in to comment.