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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
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
|
// 任意条件满足即为非法路径
|