fix(desktop): keep the advertised apt suite pattern valid in v-mode

The start_build_computer apt `suite` pattern, added after #10423's base,
had an unescaped / inside a character class, which the v flag refuses.
The full-profile guard from #10423 caught it. Spell it \x2f, as the
same pattern already spells -.

Refs #10389

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
gensokyo-devandgensokyo-dev authored and Ysopwnable committed 2026-11-14 14:16:39 +01:00
1 parent 41625d7d1b
commit fee267759d
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ export const buildInstallSchema = z.discriminatedUnion("kind", [
kind: z.literal("apt_repository"),
package: aptPackageSchema,
uri: downloadUrlSchema,
suite: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._/\x2d]*$/u),
suite: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._\x2f\x2d]*$/u),
components: z.array(z.string().regex(/^[A-Za-z0-9._\x2d]+$/u)).default([]),
key_file: absoluteLocalPathStringSchema.describe(
"The repository's signing key on this host, armored or binary.",