Comparing version 1.0.21 to 1.0.22
@@ -27,3 +27,4 @@ "use strict"; | ||
.replace(/^プロローグ/, '序') | ||
.replace(/^エピローグ/, '終章'); | ||
.replace(/^エピローグ/, '終章') | ||
.replace(/総/g, '總'); | ||
} | ||
@@ -48,3 +49,3 @@ exports.jp = jp; | ||
.replace(/([今此])后/g, '$1後') | ||
.replace(/[么预枪丛迈这个尔儿从龙]+/g, function (s) { | ||
.replace(/[么预枪丛迈这个尔儿从龙丝风]+/ug, function (s) { | ||
return convert_1.cn2tw(s); | ||
@@ -51,0 +52,0 @@ }); |
@@ -38,2 +38,3 @@ /** | ||
.replace(/^エピローグ/, '終章') | ||
.replace(/総/g, '總') | ||
; | ||
@@ -68,3 +69,3 @@ } | ||
.replace(/[么预枪丛迈这个尔儿从龙]+/g, function (s) | ||
.replace(/[么预枪丛迈这个尔儿从龙丝风]+/ug, function (s) | ||
{ | ||
@@ -71,0 +72,0 @@ return cn2tw(s) |
@@ -1,4 +0,1 @@ | ||
/** | ||
* Created by user on 2017/12/9/009. | ||
*/ | ||
export interface IcharCodeAtFn { | ||
@@ -5,0 +2,0 @@ (char: any, charCode: any, str: any): any; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const uni_string_1 = require("uni-string"); | ||
function array_unique(array) { | ||
@@ -14,3 +15,4 @@ return (array).filter(function (el, index, arr) { | ||
function split(str) { | ||
return str.toString().split(''); | ||
return uni_string_1.default.split(str, ''); | ||
//return str.toString().split(''); | ||
} | ||
@@ -17,0 +19,0 @@ exports.split = split; |
@@ -5,2 +5,4 @@ /** | ||
import UString from 'uni-string'; | ||
export interface IcharCodeAtFn | ||
@@ -21,3 +23,4 @@ { | ||
{ | ||
return str.toString().split(''); | ||
return UString.split(str, ''); | ||
//return str.toString().split(''); | ||
} | ||
@@ -24,0 +27,0 @@ |
@@ -37,2 +37,3 @@ export declare let _table_tw: { | ||
'諸': string[]; | ||
'尋': string[]; | ||
}; | ||
@@ -39,0 +40,0 @@ export interface ISimpleTable { |
@@ -150,2 +150,7 @@ "use strict"; | ||
], | ||
'尋': [ | ||
'尋', | ||
'寻', | ||
'𡬶', | ||
], | ||
}; | ||
@@ -152,0 +157,0 @@ Object.keys(exports.table_plus) |
@@ -154,2 +154,7 @@ /** | ||
], | ||
'尋': [ | ||
'尋', | ||
'寻', | ||
'𡬶', | ||
], | ||
}; | ||
@@ -156,0 +161,0 @@ |
{ | ||
"name": "cjk-conv", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "convert chinese, japanese 簡繁日漢字轉換 ( merge/split submodule from node-novel, regexp-cjk, str-util )", | ||
@@ -64,3 +64,4 @@ "keywords": [ | ||
"deepmerge-plus": "^2.1.1", | ||
"japanese": "^1.2.0" | ||
"japanese": "^1.2.0", | ||
"uni-string": "^1.0.1" | ||
}, | ||
@@ -67,0 +68,0 @@ "devDependencies": { |
434717
37949
4
+ Addeduni-string@^1.0.1
+ Addedclass-proxy@1.1.2(transitive)
+ Addedes6-class-prototype@1.0.4(transitive)
+ Addedrunes2@1.1.4(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addeduni-string@1.1.17(transitive)