Comparing version 1.0.4 to 1.0.5
@@ -19,3 +19,3 @@ "use strict"; | ||
// @ts-ignore | ||
skip: '龙竜龍制征里像拜冰澤涉' + (options.skip || ''), | ||
skip: '龙竜龍制征里像拜冰澤涉丑' + (options.skip || ''), | ||
})) | ||
@@ -38,3 +38,5 @@ .replace(/诅/g, '詛') | ||
.replace(/泽/g, '澤') | ||
.replace(/^(?:后)記/, '後記'); | ||
.replace(/^(?:后)(記|日)/, '後$1') | ||
.replace(/回复/g, '回復') | ||
.replace(/复(仇|讐)/g, '復$1'); | ||
} | ||
@@ -41,0 +43,0 @@ exports.zh = zh; |
@@ -23,3 +23,3 @@ /** | ||
// @ts-ignore | ||
skip: '龙竜龍制征里像拜冰澤涉' + (options.skip || ''), | ||
skip: '龙竜龍制征里像拜冰澤涉丑' + (options.skip || ''), | ||
})) | ||
@@ -44,3 +44,6 @@ .replace(/诅/g, '詛') | ||
.replace(/泽/g, '澤') | ||
.replace(/^(?:后)記/, '後記') | ||
.replace(/^(?:后)(記|日)/, '後$1') | ||
.replace(/回复/g, '回復') | ||
.replace(/复(仇|讐)/g, '復$1') | ||
//.replace(/死后/g, '死後') | ||
//.replace(/当/g, '當') | ||
@@ -47,0 +50,0 @@ ; |
@@ -0,1 +1,3 @@ | ||
import libTable from './table'; | ||
export { libTable }; | ||
export interface IOptions { | ||
@@ -2,0 +4,0 @@ skip?: any; |
@@ -8,2 +8,3 @@ "use strict"; | ||
const table_1 = require("./table"); | ||
exports.libTable = table_1.default; | ||
const util_1 = require("../../util"); | ||
@@ -10,0 +11,0 @@ function _get(a, value, ...values) { |
@@ -9,2 +9,4 @@ /** | ||
export { libTable } | ||
export interface IOptions | ||
@@ -11,0 +13,0 @@ { |
@@ -8,2 +8,5 @@ export declare let _table_tw: { | ||
'画': string[]; | ||
'闘': string[]; | ||
'鬥': string[]; | ||
'鬭': string[]; | ||
}; | ||
@@ -10,0 +13,0 @@ export declare let table_plus: { |
@@ -8,2 +8,3 @@ "use strict"; | ||
const util_1 = require("../../util"); | ||
const deepmerge = require("deepmerge-plus"); | ||
exports._table_tw = { | ||
@@ -24,2 +25,11 @@ '罗': '羅', | ||
], | ||
'闘': [ | ||
'斗', | ||
], | ||
'鬥': [ | ||
'斗', | ||
], | ||
'鬭': [ | ||
'斗', | ||
], | ||
}; | ||
@@ -51,3 +61,2 @@ exports.table_plus = { | ||
'鬥', | ||
'鬭', | ||
'闘', | ||
@@ -63,3 +72,7 @@ ], | ||
}); | ||
Object.assign(exports.table_jp, exports.table_plus); | ||
exports.table_jp = deepmerge(exports.table_jp, exports.table_plus); | ||
Object.keys(exports.table_jp) | ||
.forEach(function (key) { | ||
exports.table_jp[key] = util_1.array_unique(exports.table_jp[key]); | ||
}); | ||
exports._table_cn = _update({}, exports._table_tw); | ||
@@ -66,0 +79,0 @@ function _update(target, source) { |
@@ -7,2 +7,3 @@ /** | ||
import { array_unique } from '../../util'; | ||
import * as deepmerge from 'deepmerge-plus'; | ||
@@ -25,2 +26,11 @@ export let _table_tw = { | ||
], | ||
'闘': [ | ||
'斗', | ||
], | ||
'鬥': [ | ||
'斗', | ||
], | ||
'鬭': [ | ||
'斗', | ||
], | ||
}; | ||
@@ -53,3 +63,2 @@ | ||
'鬥', | ||
'鬭', | ||
'闘', | ||
@@ -72,4 +81,11 @@ //'斗', | ||
Object.assign(table_jp, table_plus); | ||
table_jp = deepmerge(table_jp, table_plus); | ||
Object.keys(table_jp) | ||
.forEach(function (key) | ||
{ | ||
table_jp[key] = array_unique(table_jp[key]); | ||
}) | ||
; | ||
//console.log(table_jp); | ||
@@ -76,0 +92,0 @@ |
{ | ||
"name": "cjk-conv", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "convert chinese, japanese 簡繁日漢字轉換 ( merge/split submodule from node-novel, regexp-cjk, str-util )", | ||
@@ -63,2 +63,3 @@ "keywords": [ | ||
"chinese_convert": "^1.0.8", | ||
"deepmerge-plus": "^2.1.0", | ||
"japanese": "^1.2.0" | ||
@@ -65,0 +66,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
430021
37680
3
+ Addeddeepmerge-plus@^2.1.0
+ Addeddeepmerge-plus@2.1.3(transitive)
+ Addedis-mergeable-object@1.1.0(transitive)