UNPKG

regexp-cjk

Version:

Generate JavaScript-compatible regular expressions with chinese/jp/zh/cn

28 lines 766 B
"use strict"; /** * Created by user on 2018/5/3/003. * * 已廢棄 僅用於舊版相容 */ Object.defineProperty(exports, "__esModule", { value: true }); exports._word_zh_core = void 0; exports._word_zh = _word_zh; const __1 = require(".."); const conv_1 = require("./conv"); Object.defineProperty(exports, "_word_zh_core", { enumerable: true, get: function () { return conv_1._word_zh_core; } }); function _word_zh(search, ret, flags = 'ig', skip) { let s; if (search instanceof RegExp) { s = new __1.zhRegExp(search, { skip, }); flags = s.flags; } else { s = new __1.zhRegExp(search, flags, { skip, }).source; } return [s, ret, flags]; } //# sourceMappingURL=index.js.map