@nlpjs/lang-zh
Advanced tools
Comparing version 4.23.4 to 4.25.0
{ | ||
"name": "@nlpjs/lang-zh", | ||
"version": "4.23.4", | ||
"version": "4.25.0", | ||
"description": "Core", | ||
@@ -28,5 +28,5 @@ "author": { | ||
"dependencies": { | ||
"@nlpjs/core": "^4.23.4" | ||
"@nlpjs/core": "^4.25.0" | ||
}, | ||
"gitHead": "ad0a639c4cd58735903a21272f7a04a8ace886ab" | ||
"gitHead": "3065165b42ea2160d2a27c10c412c4b4c491332a" | ||
} |
@@ -152,3 +152,4 @@ /* | ||
isChineseChar(ch) { | ||
const regex = /[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DB5\u4E00-\u9FCC\uF900-\uFA6D\uFA70-\uFAD9]|[\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/g; | ||
const regex = | ||
/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DB5\u4E00-\u9FCC\uF900-\uFA6D\uFA70-\uFAD9]|[\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/g; | ||
return regex.test(ch); | ||
@@ -155,0 +156,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10649879
60214
Updated@nlpjs/core@^4.25.0