Comparing version 0.8.1 to 0.8.2
@@ -29,3 +29,3 @@ import { CharType } from './types.js'; | ||
// on-keyboard symbols | ||
'~-+*/\\%=&|"`<>@#$^', | ||
'~-+*/\\%=&|`<>@#$^', | ||
// symbol of death | ||
@@ -32,0 +32,0 @@ '†‡' |
@@ -87,6 +87,6 @@ /** | ||
if (token.type === GroupTokenType.GROUP) { | ||
if (charMap[token.modifiedStartValue]) { | ||
if (Object.prototype.hasOwnProperty.call(charMap, token.modifiedStartValue)) { | ||
checkStartValue(token, charMap[token.modifiedStartValue], PUNCTUATION_UNIFICATION); | ||
} | ||
if (charMap[token.modifiedEndValue]) { | ||
if (Object.prototype.hasOwnProperty.call(charMap, token.modifiedEndValue)) { | ||
checkEndValue(token, charMap[token.modifiedEndValue], PUNCTUATION_UNIFICATION); | ||
@@ -97,3 +97,3 @@ } | ||
else { | ||
if (charMap[token.modifiedValue]) { | ||
if (Object.prototype.hasOwnProperty.call(charMap, token.modifiedValue)) { | ||
checkValue(token, charMap[token.modifiedValue], undefined, PUNCTUATION_UNIFICATION); | ||
@@ -100,0 +100,0 @@ } |
{ | ||
"name": "zhlint", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "A linting tool for Chinese language.", | ||
@@ -19,3 +19,3 @@ "bin": { | ||
"docs/*.png", | ||
"docs/logo.svg", | ||
"docs/public/zhlint.svg", | ||
"README.md" | ||
@@ -52,3 +52,3 @@ ], | ||
"vite-plugin-node-polyfills": "^0.19.0", | ||
"vitepress": "1.0.0-rc.39", | ||
"vitepress": "^1.0.0", | ||
"vitest": "^1.2.2" | ||
@@ -82,3 +82,3 @@ }, | ||
"coverage": "vitest run --coverage", | ||
"docs": "vitepress dev docs", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:runtime": "cp dist/zhlint.es.js* docs/", | ||
@@ -85,0 +85,0 @@ "docs:readme": "node scripts/gen-readme.mjs", |
@@ -1,2 +0,2 @@ | ||
# ![logo](docs/logo.svg) zhlint | ||
# ![logo](docs/zhlint.svg) zhlint | ||
@@ -3,0 +3,0 @@ A linting tool for Chinese text content. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2936978