Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lazy-cjk/zh-table-greedy

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lazy-cjk/zh-table-greedy - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

lib/util.d.ts

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

## [1.0.9](https://github.com/bluelovers/ws-regexp/compare/@lazy-cjk/zh-table-greedy@1.0.8...@lazy-cjk/zh-table-greedy@1.0.9) (2020-05-27)
### Bug Fixes
* bug of map ([7106919](https://github.com/bluelovers/ws-regexp/commit/7106919454b7dde9fc5da9de6aba074213bd46c9))
### Features
* zh-table-greedy ([8df0264](https://github.com/bluelovers/ws-regexp/commit/8df0264cb3b4c0975cc26b088b71cf79ee19f4af))
## [1.0.8](https://github.com/bluelovers/ws-regexp/compare/@lazy-cjk/zh-table-greedy@1.0.7...@lazy-cjk/zh-table-greedy@1.0.8) (2020-05-27)

@@ -8,0 +24,0 @@

10

lib/core.js

@@ -5,9 +5,6 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports._greedyTableBuild = void 0;
const uni_string_1 = __importDefault(require("uni-string"));
const array_hyper_unique_1 = require("array-hyper-unique");
const util_1 = require("./util");
function _greedyTableBuild(data) {

@@ -21,6 +18,3 @@ // @ts-ignore

.reduce(function (arr, r) {
const s = r[0].source
.replace(/^.*\[|\].*$/ug, '');
const a = uni_string_1.default.split(s, '').concat(r[1]).sort();
array_hyper_unique_1.array_unique_overwrite(a);
const a = util_1.reToStringList(r[0], r[1]);
a.forEach(c => {

@@ -27,0 +21,0 @@ _greedyTableCacheMap.set(c, a);

34

lib/table.js

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "_greedyTableCacheRegexp", { enumerable: true, get: function () { return re_1._greedyTableCacheRegexp; } });
exports._greedyTableCacheTest = /[噁恶悪惡係系繋繫楜煳糊胡葫衚鬍儅噹当當复復複覆囌甦苏蘇䌽埰彩採睬綵踩采㑩儸啰囉罗羅刘劉浏瀏券劵卷巻捲蜷划劃画畫斗闘鬥鬪鬭乹乾亁干幹図图圖历暦曆歴歷面麪麵麺讃讚賛贊赞发發髪髮侭儘尽盡優忧憂俱倶具の之得的と与與他佗她它牠祂只支枝隻泡炮炰砲㊥中仲元原回廻迴辟避闢卤滷魯鲁鹵儓台檯臺颱宻密祕秘謎谜迷沙砂紗纱莎篇編编冶治炼煉練练錬鍊𫔀亚亜亞娅婭桠椏塞賽赛籐籘腾藤騰你妳祢禰⻞喰蚀蝕食飠飧玛瑪馬马餚餸果裸凯凱鎧铠帖貼贴什甚联聯连連像象借藉蕾雷定訂订釘钉向嚮丝糸糹絲桶筒兹滋玆茲吶呐訥讷穀糓谷両两俩倆兩帐帳賬账板版闆呆待溶熔融螎鎔镕匯彙汇仏佛彿啊阿傢家暴爆䋄䋞冈刚剛堈岗岡崗綱網纲缸网鋼钢注註潅灌貫贯倒到儭平秤称稱衬襯勋勛勲勳丽利莉麗己已巳呵嗬呦哊哟唷唹喲傑婕杰洁潔絜嘻嬉嘛痲痳麻犬狗拂亘亙恆恒付副附伽加枷珈迦福褔挨捱拚拼漂飃飄飘佔占沾气気氣汽滊炁撩辽遼作做捜搜蒐傁叟榭謝谢型形僱雇頋顧顾庐廬芦蘆眈耽躭傹竞竟競竸誩𥪰𧡟𧫘𧫙𧮣𨐼植殖佬姥老倖幸㠪巨炬矩鉅钜䃛鏈链𧹯㓥刴剁剐剮劏南枏楠璐路𡽘𨱴侂托拓拕拖杔託讬希悕睎稀囯国國帼幗反返佯扬揚旸暘杨楊炀烊煬阳陽來来莱萊保堡緥葆褓度渡剳扎札箚紮堤媞提湜禔緹缇隄腊臘蜡蠟郁鬱𨚼𨟝扞擀杆桿脼郎郞𥇑巴芭捏涅湼択择擇沢泽澤幵开開佩珮吁喩喻籲龥値值脏臓臟贓赃髒㊤上㊦下呼唿祥詳详妮尼泥克剋尅拨撥播挿插揷丁汀娜那拉菈林淋玲琳鈴铃名銘铭出齣唉欸誒诶呣哞㖿吔耶媚魅匪扉斐緋绯翡菲蜚誹诽霏非叉衩釵钗其淇琪祺坛壇談譚谈谭才材柴唸念指趾仕士娘嬢孃哑唖啞痖瘂仂働动動察查査鉃鉄銕鐡鐵铁𨫓帰归歸皈创創疮瘡拷烤考入込仑伦侖倫仔子弯彎湾灣熒荧萤蛍螢争挣掙爭涨漲胀脹冇无沒没無吨噸訰勾鈎鉤钩沈沉叠畳疊迭僵殭疆繮缰韁揹背团団團糰榚糕需須须鬚抒紆紓纡纾州洲厂厰场場廠筱筿篠根跟曝㬅嫚曼漫熳蔓升昇陞獃烟煙腌菸醃录錄録陆陸掳擄虏虜翘翹跷蹺脚腳角直詞词辞辭义意義哏梗呎咫尺伶怜憐委荽萎岭岺嶺阾領领决決絕絶绝訣诀岳嶽𡶦受授綫線线缐腺一壱壹慌荒庭廷喧宣暄諠掠略畧䇳牋笺签箋簽籖籤么幺庅麼麽杧芒茫趯跃躍㳽弥彌瀰抹袜襪䆫囪囱窓窗窻函凾涵悚耸聳洛落标標鏢鑣镖镳怪恠並併倂并幷竝𠀤鶇鶫鸫𪂝鐳镭靁白鉑铂吊弔戒誡诫𢌵堀窟厉厲砺礪岛島嶋]/u;
exports._greedyTableCacheTest = /[噁恶悪惡係系繋繫楜煳糊胡葫衚鬍儅噹当當复復複覆囌甦苏蘇䌽埰彩採睬綵踩采㑩儸啰囉罗羅刘劉浏瀏券劵卷巻捲蜷划劃画畫斗闘鬥鬪鬭乹乾亁干幹図图圖历暦曆歴歷面麪麵麺讃讚賛贊赞发發髪髮侭儘尽盡優忧憂俱倶具の之得的と与與他佗她它牠祂只支枝隻泡炮炰砲㊥中仲元原回廻迴辟避闢卤滷魯鲁鹵儓台檯臺颱宻密祕秘謎谜迷沙砂紗纱莎篇編编冶治䃛炼煉練练錬鍊鏈链𧹯𫔀亚亜亞娅婭桠椏塞賽赛籐籘腾藤騰你妳祢禰⻞喰蚀蝕食飠飧玛瑪馬马餚餸果裸凯凱鎧铠帖貼贴什甚联聯连連像象借藉蕾鐳镭雷靁定訂订釘钉向嚮丝糸糹絲桶筒兹滋玆茲吶呐訥讷穀糓谷両两俩倆兩帐帳賬账板版闆呆待獃溶熔融螎鎔镕匯彙汇仏佛彿拂啊阿傢家暴曝爆䋄䋞冈刚剛堈岗岡崗綱網纲缸网鋼钢注註潅灌貫贯倒到儭平秤称稱衬襯勋勛勲勳丽利莉麗己已巳呵嗬呦哊哟唷唹喲傑婕杰洁潔絜嘻嬉嘛痲痳麻犬狗亘亙恆恒付副附伽加枷珈迦福褔挨捱拚拼漂飃飄飘佔占沾气気氣汽滊炁撩辽遼作做捜搜蒐傁叟榭謝谢型形僱雇頋顧顾庐廬芦蘆眈耽躭傹竞竟競竸誩𥪰𧡟𧫘𧫙𧮣𨐼植殖佬姥老倖幸㠪巨炬矩鉅钜㓥刴剁剐剮劏南枏楠璐路𡽘𨱴侂托拓拕拖杔託讬希悕睎稀囯国國帼幗反返佯扬揚旸暘杨楊炀烊煬阳陽來来莱萊保堡緥葆褓度渡剳扎札箚紮堤媞提湜禔緹缇隄腊臘蜡蠟郁鬱𨚼𨟝扞擀杆桿脼郎郞𥇑巴芭捏涅湼択择擇沢泽澤幵开開佩珮吁喩喻籲龥値值直脏臓臟贓赃髒㊤上㊦下呼唿祥詳详妮尼泥克剋尅拨撥播挿插揷丁汀娜那拉菈林淋玲琳鈴铃名銘铭出齣唉欸誒诶呣哞㖿吔耶媚魅匪扉斐緋绯翡菲蜚誹诽霏非叉衩釵钗其淇琪祺坛壇談譚谈谭才材柴唸念指趾仕士娘嬢孃哑唖啞痖瘂仂働动動察查査鉃鉄銕鐡鐵铁𨫓帰归歸皈创創疮瘡拷烤考入込仑伦侖倫仔子弯彎湾灣熒荧萤蛍螢争挣掙爭涨漲胀脹冇无沒没無吨噸訰勾鈎鉤钩沈沉叠畳疊迭僵殭疆繮缰韁揹背团団團糰榚糕需須须鬚抒紆紓纡纾州洲厂厰场場廠筱筿篠根跟㬅嫚曼漫熳蔓升昇陞烟煙腌菸醃录錄録陆陸掳擄虏虜翘翹跷蹺脚腳角詞词辞辭义意義哏梗呎咫尺伶怜憐委荽萎岭岺嶺阾領领决決絕絶绝訣诀岳嶽𡶦受授綫線线缐腺一壱壹慌荒庭廷喧宣暄諠掠略畧䇳牋笺签箋簽籖籤么幺庅麼麽杧芒茫趯跃躍㳽弥彌瀰抹袜襪䆫囪囱窓窗窻函凾涵悚耸聳洛落标標鏢鑣镖镳怪恠並併倂并幷竝𠀤鶇鶫鸫𪂝白鉑铂吊弔戒誡诫𢌵堀窟厉厲砺礪岛島嶋]/u;
exports._greedyTableCacheMap = new Map([

@@ -164,2 +164,3 @@ ["噁", ["噁", "恶", "悪", "惡"]],

["治", ["冶", "治"]],
["䃛", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["炼", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],

@@ -171,2 +172,5 @@ ["煉", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],

["鍊", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["鏈", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["链", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["𧹯", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["𫔀", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],

@@ -224,4 +228,7 @@ ["亚", ["亚", "亜", "亞", "娅", "婭", "桠", "椏"]],

["藉", ["借", "藉"]],
["蕾", ["蕾", "雷"]],
["雷", ["鐳", "镭", "雷", "靁"]],
["蕾", ["蕾", "鐳", "镭", "雷", "靁"]],
["鐳", ["蕾", "鐳", "镭", "雷", "靁"]],
["镭", ["蕾", "鐳", "镭", "雷", "靁"]],
["雷", ["蕾", "鐳", "镭", "雷", "靁"]],
["靁", ["蕾", "鐳", "镭", "雷", "靁"]],
["定", ["定", "訂", "订", "釘", "钉"]],

@@ -265,2 +272,3 @@ ["訂", ["定", "訂", "订", "釘", "钉"]],

["待", ["呆", "待", "獃"]],
["獃", ["呆", "待", "獃"]],
["溶", ["溶", "熔", "融", "螎", "鎔", "镕"]],

@@ -275,5 +283,6 @@ ["熔", ["溶", "熔", "融", "螎", "鎔", "镕"]],

["汇", ["匯", "彙", "汇"]],
["仏", ["仏", "佛", "彿"]],
["佛", ["佛", "彿", "拂"]],
["彿", ["佛", "彿", "拂"]],
["仏", ["仏", "佛", "彿", "拂"]],
["佛", ["仏", "佛", "彿", "拂"]],
["彿", ["仏", "佛", "彿", "拂"]],
["拂", ["仏", "佛", "彿", "拂"]],
["啊", ["啊", "阿"]],

@@ -284,2 +293,3 @@ ["阿", ["啊", "阿"]],

["暴", ["暴", "曝", "爆"]],
["曝", ["暴", "曝", "爆"]],
["爆", ["暴", "曝", "爆"]],

@@ -350,3 +360,2 @@ ["䋄", ["䋄", "䋞", "冈", "刚", "剛", "堈", "岗", "岡", "崗", "綱", "網", "纲", "缸", "网", "鋼", "钢"]],

["狗", ["犬", "狗"]],
["拂", ["佛", "彿", "拂"]],
["亘", ["亘", "亙", "恆", "恒"]],

@@ -435,6 +444,2 @@ ["亙", ["亘", "亙", "恆", "恒"]],

["钜", ["㠪", "巨", "炬", "矩", "鉅", "钜"]],
["䃛", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["鏈", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["链", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["𧹯", ["䃛", "炼", "煉", "練", "练", "錬", "鍊", "鏈", "链", "𧹯", "𫔀"]],
["㓥", ["㓥", "刴", "剁", "剐", "剮", "劏"]],

@@ -547,2 +552,3 @@ ["刴", ["㓥", "刴", "剁", "剐", "剮", "劏"]],

["值", ["値", "值", "直"]],
["直", ["値", "值", "直"]],
["脏", ["脏", "臓", "臟", "贓", "赃", "髒"]],

@@ -749,3 +755,2 @@ ["臓", ["脏", "臓", "臟", "贓", "赃", "髒"]],

["跟", ["根", "跟"]],
["曝", ["暴", "曝", "爆"]],
["㬅", ["㬅", "嫚", "曼", "漫", "熳", "蔓"]],

@@ -760,3 +765,2 @@ ["嫚", ["㬅", "嫚", "曼", "漫", "熳", "蔓"]],

["陞", ["升", "昇", "陞"]],
["獃", ["呆", "待", "獃"]],
["烟", ["烟", "煙", "腌", "菸", "醃"]],

@@ -783,3 +787,2 @@ ["煙", ["烟", "煙", "腌", "菸", "醃"]],

["角", ["脚", "腳", "角"]],
["直", ["値", "值", "直"]],
["詞", ["詞", "词", "辞", "辭"]],

@@ -899,5 +902,2 @@ ["词", ["詞", "词", "辞", "辭"]],

["𪂝", ["鶇", "鶫", "鸫", "𪂝"]],
["鐳", ["鐳", "镭", "雷", "靁"]],
["镭", ["鐳", "镭", "雷", "靁"]],
["靁", ["鐳", "镭", "雷", "靁"]],
["白", ["白", "鉑", "铂"]],

@@ -904,0 +904,0 @@ ["鉑", ["白", "鉑", "铂"]],

@@ -37,3 +37,2 @@ "use strict";

[/[迴廻]/g, '回'],
[/[乾亁乹幹]/g, '干'],
[/[避闢]/g, '辟'],

@@ -47,3 +46,3 @@ [/[滷鹵卤鲁]/g, '魯'],

[/[冶]/g, '治'],
[/[炼煉錬鍊𫔀練练]/ug, '練'],
[/[䃛炼練练錬鍊鏈链𧹯𫔀]/ug, '煉'],
[/[亞亚婭娅椏桠亜]/ug, '亚'],

@@ -63,3 +62,3 @@ [/[塞賽]/ug, '赛'],

[/[藉]/ug, '借'],
[/[蕾]/ug, '雷'],
[/[蕾鐳镭靁]/ug, '雷'],
[/[訂订釘钉]/ug, '定'],

@@ -75,9 +74,9 @@ [/[嚮]/ug, '向'],

[/[版闆]/ug, '板'],
[/[待]/ug, '呆'],
[/[待獃]/ug, '呆'],
[/[熔鎔镕融螎]/ug, '溶'],
[/[匯汇]/ug, '彙'],
[/[彿仏]/ug, '佛'],
[/[彿仏拂]/ug, '佛'],
[/[阿]/ug, '啊'],
[/[家]/ug, '傢'],
[/[爆]/ug, '暴'],
[/[曝爆]/ug, '暴'],
[/[䋄䋞冈刚剛堈岗岡崗綱網纲缸鋼钢]/ug, '网'],

@@ -97,3 +96,2 @@ [/[註]/ug, '注'],

[/[狗]/ug, '犬'],
[/[彿拂]/ug, '佛'],
[/[亙恆恒]/ug, '亘'],

@@ -122,3 +120,2 @@ [/[附副]/ug, '付'],

[/[㠪炬矩鉅钜]/ug, '巨'],
[/[鏈链炼錬鍊𫔀䃛𧹯練练]/ug, '煉'],
[/[刴剁剐剮劏]/ug, '㓥'],

@@ -147,3 +144,3 @@ [/[枏楠]/ug, '南'],

[/[喩籲龥吁]/ug, '喻'],
[/[值]/ug, '値'],
[/[值値]/ug, '直'],
[/[臓臟贓赃髒]/ug, '脏'],

@@ -206,6 +203,4 @@ [/[㊤]/ug, '上'],

[/[跟]/ug, '根'],
[/[曝爆]/ug, '暴'],
[/[㬅嫚曼熳蔓]/ug, '漫'],
[/[昇陞]/ug, '升'],
[/[待獃]/ug, '呆'],
[/[煙腌菸醃]/ug, '烟'],

@@ -216,3 +211,2 @@ [/[錄録陆陸]/ug, '录'],

[/[腳角]/ug, '脚'],
[/[值直]/ug, '値'],
[/[词辞辭]/ug, '詞'],

@@ -248,3 +242,2 @@ [/[意義]/ug, '义'],

[/[鶫鸫𪂝]/ug, '鶇'],
[/[鐳镭靁]/ug, '雷'],
[/[鉑铂]/ug, '白'],

@@ -251,0 +244,0 @@ [/[弔]/ug, '吊'],

{
"name": "@lazy-cjk/zh-table-greedy",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -23,3 +23,4 @@ "homepage": "https://github.com/bluelovers/ws-regexp/tree/master/packages/@lazy-cjk/zh-table-greedy#readme",

"test:mocha": "npx mocha --require ts-node/register \"!(node_modules)/**/*.{test,spec}.{ts,tsx}\"",
"build": "ts-node ./test/script/build-cache.ts && yarn run build:tsc",
"build": "ts-node ./test/script/build-cache.ts && yarn run build:tsc && yarn run build:check",
"build:check": "jest ./test/check.spec.ts -u",
"build:commit": "ts-node ./test/script/build-commit.ts",

@@ -45,3 +46,3 @@ "build:tsc": "ts-node ./test/script/build-ts.ts",

},
"gitHead": "618967013e388f753dc414f852d748b95661be27"
"gitHead": "fe3596f703b9a6c8f0c3aee1a58ae10903fa60c9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc