wgt-node-utils 1.2.7 → 1.2.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -757,8 +757,8 @@ class wgtNodeUtils {
757
757
  // 检查是否包含大写字母(排除大写字母)
758
758
  const hasUpperCase = /[A-Z]/;
759
759
 
760
- // 检查是否包含特殊字符(除斜杠和下划线外)
761
- const hasSpecialChar = /[^a-zA-Z0-9/_]/;
760
+ // 检查是否包含特殊字符(除斜杠 、下划线 横杠外)
761
+ const hasSpecialChar = /[^a-zA-Z0-9/_-]/;
762
762
 
763
763
 
764
764
  // 任意条件满足即为非法路径