Browse Source

feat(util): 公司名称正则

qinlaiqiao 5 years ago
parent
commit
8931a00987
1 changed files with 3 additions and 0 deletions
  1. 3 0
      util/src/reg.ts

+ 3 - 0
util/src/reg.ts

@@ -48,3 +48,6 @@ export const chineseNameReg = /^[\u4e00-\u9fa5]+[·-]?[\u4e00-\u9fa5]+$/;
 
 
 // md5
 // md5
 export const md5Reg = /^[a-f\d]{32}|[A-F\d]{32}$/;
 export const md5Reg = /^[a-f\d]{32}|[A-F\d]{32}$/;
+
+// 公司名称
+export const companyNameReg = /^[\u4e00-\u9fa5()()\da-zA-Z&]{2,}$/;