@freelog/tools-lib 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools-lib.cjs.development.js +1 -1
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +1 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/regexp.ts +35 -35
package/package.json
CHANGED
package/src/utils/regexp.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
// 展品名称
|
|
2
|
-
export const EXHIBIT_NAME: RegExp = /^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/;
|
|
3
|
-
|
|
4
|
-
// 资源名称
|
|
5
|
-
export const RESOURCE_NAME: RegExp = /^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/;
|
|
6
|
-
|
|
7
|
-
// 资源类型
|
|
8
|
-
export const RESOURCE_TYPE: RegExp = /^(?!_)[a-z0-9_]{3,20}(?<!_)$/;
|
|
9
|
-
|
|
10
|
-
// 自定义属性键
|
|
11
|
-
export const CUSTOM_KEY: RegExp = /^[a-zA-Z0-9_]{1,20}$/;
|
|
12
|
-
|
|
13
|
-
// 节点名称
|
|
14
|
-
export const NODE_NAME: RegExp = /^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/;
|
|
15
|
-
|
|
16
|
-
// 节点地址
|
|
17
|
-
export const NODE_DOMAIN = /^(?!-)[a-z0-9-]{4,24}(?<!-)$/;
|
|
18
|
-
|
|
19
|
-
// 支付密码
|
|
20
|
-
export const PAY_PASSWORD = /^\d{6}$/;
|
|
21
|
-
|
|
22
|
-
// 手机号码
|
|
23
|
-
export const MOBILE_PHONE_NUMBER = /^
|
|
24
|
-
// export const TELEPHONE_NUMBER = /^((13[0-9])|(14[5-9])|(15([0-3]|[5-9]))|(16[6-7])|(17[1-8])|(18[0-9])|(19[1|3])|(19[5|6])|(19[8|9]))\d{8}$/
|
|
25
|
-
|
|
26
|
-
// 邮箱地址
|
|
27
|
-
export const EMAIL_ADDRESS = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
|
|
28
|
-
|
|
29
|
-
// 用户名
|
|
30
|
-
// export const USERNAME = /^(?!-)[A-Za-z0-9-]{1,30}(?<!-)$/;
|
|
31
|
-
export const USERNAME = /^(?!-)[A-Za-z0-9-]{1,30}(?<!-)$/;
|
|
32
|
-
|
|
33
|
-
// 用户密码
|
|
34
|
-
// export const PASSWORD = /^(?=.*[a-zA-Z])(?=.*[0-9]).{6,24}$/;
|
|
35
|
-
export const PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/;
|
|
1
|
+
// 展品名称
|
|
2
|
+
export const EXHIBIT_NAME: RegExp = /^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/;
|
|
3
|
+
|
|
4
|
+
// 资源名称
|
|
5
|
+
export const RESOURCE_NAME: RegExp = /^(?!.*(\\|\/|:|\*|\?|"|<|>|\||\s|@|\$|#)).{1,60}$/;
|
|
6
|
+
|
|
7
|
+
// 资源类型
|
|
8
|
+
export const RESOURCE_TYPE: RegExp = /^(?!_)[a-z0-9_]{3,20}(?<!_)$/;
|
|
9
|
+
|
|
10
|
+
// 自定义属性键
|
|
11
|
+
export const CUSTOM_KEY: RegExp = /^[a-zA-Z0-9_]{1,20}$/;
|
|
12
|
+
|
|
13
|
+
// 节点名称
|
|
14
|
+
export const NODE_NAME: RegExp = /^[\u4E00-\u9FA5|a-zA-Z0-9]{2,24}$/;
|
|
15
|
+
|
|
16
|
+
// 节点地址
|
|
17
|
+
export const NODE_DOMAIN = /^(?!-)[a-z0-9-]{4,24}(?<!-)$/;
|
|
18
|
+
|
|
19
|
+
// 支付密码
|
|
20
|
+
export const PAY_PASSWORD = /^\d{6}$/;
|
|
21
|
+
|
|
22
|
+
// 手机号码
|
|
23
|
+
export const MOBILE_PHONE_NUMBER = /^1[345789]\d{9}$/;
|
|
24
|
+
// export const TELEPHONE_NUMBER = /^((13[0-9])|(14[5-9])|(15([0-3]|[5-9]))|(16[6-7])|(17[1-8])|(18[0-9])|(19[1|3])|(19[5|6])|(19[8|9]))\d{8}$/
|
|
25
|
+
|
|
26
|
+
// 邮箱地址
|
|
27
|
+
export const EMAIL_ADDRESS = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
|
|
28
|
+
|
|
29
|
+
// 用户名
|
|
30
|
+
// export const USERNAME = /^(?!-)[A-Za-z0-9-]{1,30}(?<!-)$/;
|
|
31
|
+
export const USERNAME = /^(?!-)[A-Za-z0-9-]{1,30}(?<!-)$/;
|
|
32
|
+
|
|
33
|
+
// 用户密码
|
|
34
|
+
// export const PASSWORD = /^(?=.*[a-zA-Z])(?=.*[0-9]).{6,24}$/;
|
|
35
|
+
export const PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/;
|