@spare/fullwidth
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -13,2 +13,3 @@ 'use strict'; | ||
const FWREG = /[\uff01-\uff5e|\u3000]+/g; | ||
const FWCHREG = /[\u4e00-\u9fa5|\uff01-\uff5e|\u3000]+/g; | ||
const FWLEAP = 0xfee0; | ||
@@ -95,3 +96,3 @@ | ||
const hasFullWidth = str => FWREG.test(str); | ||
const hasFullWidth = str => FWCHREG.test(str); | ||
@@ -98,0 +99,0 @@ const fullWidth = (text, { |
@@ -7,2 +7,3 @@ import { SP } from '@spare/enum-chars'; | ||
const FWREG = /[\uff01-\uff5e|\u3000]+/g; | ||
const FWCHREG = /[\u4e00-\u9fa5|\uff01-\uff5e|\u3000]+/g; | ||
const FWLEAP = 0xfee0; | ||
@@ -89,3 +90,3 @@ | ||
const hasFullWidth = str => FWREG.test(str); | ||
const hasFullWidth = str => FWCHREG.test(str); | ||
@@ -92,0 +93,0 @@ const fullWidth = (text, { |
{ | ||
"name": "@spare/fullwidth", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Convert between half-width and full-width", | ||
@@ -18,5 +18,5 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@spare/enum-chars": "^0.6.0", | ||
"@spare/enum-full-angle-chars": "^0.6.0", | ||
"@spare/lange": "^0.6.0", | ||
"@spare/enum-chars": "^0.6.1", | ||
"@spare/enum-full-angle-chars": "^0.6.1", | ||
"@spare/lange": "^0.6.1", | ||
"strip-ansi": "^6.0.0" | ||
@@ -40,3 +40,3 @@ }, | ||
"homepage": "https://github.com/hoyeungw/spare#readme", | ||
"gitHead": "4aa71131e0c850e20564b213bff16f4aed5eccdc" | ||
"gitHead": "9ec83d36039ada9da8020f6fc1580fe9c84e3f80" | ||
} |
8686
203
Updated@spare/enum-chars@^0.6.1
Updated@spare/lange@^0.6.1