@pawover/kit 0.0.0-alpha.19 → 0.0.0-alpha.20
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/zod.js +2 -2
- package/package.json +1 -1
package/dist/zod.js
CHANGED
|
@@ -114,10 +114,10 @@ const dirPathWindows = z.string().regex(_dirPathWindows, { error: "路径格式
|
|
|
114
114
|
const _filePathWindows = /^[a-z]:\\(?:\w+\\)*\w+\.\w+$/i;
|
|
115
115
|
/** windows 文件路径 */
|
|
116
116
|
const filePathWindows = z.string().regex(_filePathWindows, { error: "路径格式错误" });
|
|
117
|
-
const _dirPathLinux = /^\/(?:[
|
|
117
|
+
const _dirPathLinux = /^\/(?:[^\\/\s]+\/)*$/;
|
|
118
118
|
/** linux 文件夹路径 */
|
|
119
119
|
const dirPathLinux = z.string().regex(_dirPathLinux, { error: "路径格式错误" });
|
|
120
|
-
const _filePathLinux =
|
|
120
|
+
const _filePathLinux = /^(\/$|\/(?:[^\\/\s]+\/)*[^\\/\s]+$)/;
|
|
121
121
|
/** linux 文件路径 */
|
|
122
122
|
const filePathLinux = z.string().regex(_filePathLinux, { error: "路径格式错误" });
|
|
123
123
|
const _carCodeGreen = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))\d{4})|(\d{5}[DF]))$/;
|