zy-react-library 1.0.8 → 1.0.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.8",
4
+ "version": "1.0.9",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",
@@ -46,4 +46,9 @@ export const STRONG_PASSWORD: RegExp;
46
46
  /**
47
47
  * 匹配完整的HTML标签,包括开始标签和结束标签。
48
48
  */
49
- export const HTML_TAG: RegExp;
49
+ export const HTML_TAG: RegExp;
50
+
51
+ /**
52
+ * 匹配中国大陆的邮政编码。
53
+ */
54
+ export const POSTAL_CODE: RegExp;
package/regular/index.js CHANGED
@@ -54,3 +54,8 @@ export const STRONG_PASSWORD
54
54
  * 匹配完整的HTML标签,包括开始标签和结束标签。
55
55
  */
56
56
  export const HTML_TAG = /<[^>]*>/g;
57
+
58
+ /**
59
+ * 匹配中国大陆的邮政编码。
60
+ */
61
+ export const POSTAL_CODE = /^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/g;