From fee267759d19be81bad8ccc39354328d70115e5e Mon Sep 17 00:00:00 2001 From: gensokyo-dev Date: Sat, 14 Nov 2026 08:55:21 +0000 Subject: [PATCH] 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> --- src/domain/desktop/appBuild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/desktop/appBuild.ts b/src/domain/desktop/appBuild.ts index e6294d8725..0ce00dceea 100644 --- a/src/domain/desktop/appBuild.ts +++ b/src/domain/desktop/appBuild.ts @@ -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.",