Socket
Socket
Sign inDemoInstall

chinese-seg

Package Overview
Dependencies
6
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

lib/utils.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc