@freelog/tools-lib 0.1.60 → 0.1.61

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.
@@ -10,3 +10,5 @@ export declare const EMAIL_ADDRESS: RegExp;
10
10
  export declare const USERNAME: RegExp;
11
11
  export declare const PASSWORD: RegExp;
12
12
  export declare const NATURAL_NUMBER: RegExp;
13
+ export declare const BUCKET_NAME: RegExp;
14
+ export declare const JS_VARIABLE_NAME: RegExp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.60",
3
+ "version": "0.1.61",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -38,3 +38,9 @@ export const PASSWORD: RegExp = new RegExp(/^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$
38
38
 
39
39
  // 自然数
40
40
  export const NATURAL_NUMBER: RegExp = new RegExp(/^[0-9]*$/);
41
+
42
+ // 对象的Bucket名称
43
+ export const BUCKET_NAME: RegExp = new RegExp(/^([a-z0-9][a-z0-9-]{0,61})?[a-z0-9]$/);
44
+
45
+ // JS变量名称
46
+ export const JS_VARIABLE_NAME: RegExp = new RegExp(/^[A-Za-z$_][\w$_]*$/);