chinese-seg
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -215,3 +215,3 @@ var chnRange, clone, eql, extend, findMatchSync, findOne, matchSync, merge, newProps, noop, path, splitWordSync, tokenizeSync, unique; | ||
} | ||
if (!removeSplitter && start < word.w.length) { | ||
if (!removeSplitter && (start - word.start) < word.w.length) { | ||
value = { | ||
@@ -218,0 +218,0 @@ w: text, |
{ | ||
"name": "chinese-seg", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Implement Chinese text segmentation algorithm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
8432131