Przeglądaj źródła

fix(util): reg 导出

qinlaiqiao 4 lat temu
rodzic
commit
fea9dc7e10
3 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 1
      util/package.json
  2. 1 0
      util/src/index.ts
  3. 1 1
      util/src/reg.ts

+ 1 - 1
util/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@sc/util",
-  "version": "1.0.4",
+  "version": "1.0.5",
   "description": "共用的工具包",
   "main": "./dist/index.cjs.js",
   "module": "./dist/index.esm.js",

+ 1 - 0
util/src/index.ts

@@ -1,3 +1,4 @@
 export * from './math';
 export * from './bill';
 export * from './rationAss';
+export * from './reg';

+ 1 - 1
util/src/reg.ts

@@ -38,4 +38,4 @@ export const integerReg = /^-?[1-9]\d*$/;
 export const numberReg = /^(-?\d+)(\.\d*)?$/;
 
 // 中文姓名
-export const chineseName = /^[\u4e00-\u9fa5]+([·-]?[\u4e00-\u9fa5]+)?$/;
+export const chineseNameReg = /^[\u4e00-\u9fa5]+([·-]?[\u4e00-\u9fa5]+)?$/;