befly 3.56.0 → 3.57.0
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/checks/config.js +1 -1
- package/package.json +1 -1
package/checks/config.js
CHANGED
|
@@ -12,7 +12,7 @@ const noTrimString = z.string().refine(isNoTrimStringAllowEmpty, "不允许首
|
|
|
12
12
|
const beflyModeSchema = z.union([z.literal("manual"), z.literal("auto")]);
|
|
13
13
|
const uploadExtensionListSchema = noTrimString.regex(/^\.[a-z0-9]+(?:,\.[a-z0-9]+)*$/);
|
|
14
14
|
const uploadMimeTypeListSchema = noTrimString.regex(/^[a-z0-9][a-z0-9.+-]*\/[a-z0-9][a-z0-9.+-]*(?:,[a-z0-9][a-z0-9.+-]*\/[a-z0-9][a-z0-9.+-]*)*$/);
|
|
15
|
-
const projectListCodeSchema = z.string().regex(/^[a-
|
|
15
|
+
const projectListCodeSchema = z.string().regex(/^[a-zA-Z][a-zA-Z0-9_-]*$/, "必须以字母开头,只允许字母、数字、短横线、下划线");
|
|
16
16
|
const projectListItemSchema = z
|
|
17
17
|
.object({
|
|
18
18
|
code: projectListCodeSchema,
|