From 2966aaa1514b5a6696d9a5fb95ccac7b127c24ab Mon Sep 17 00:00:00 2001 From: Rishun Date: Mon, 15 Jun 2026 05:54:49 +0900 Subject: [PATCH 1/2] fix: correct function name length in validation error message to 63 --- src/deploy/functions/validate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deploy/functions/validate.ts b/src/deploy/functions/validate.ts index fe12d75ff8b..d0df11dd5f3 100644 --- a/src/deploy/functions/validate.ts +++ b/src/deploy/functions/validate.ts @@ -319,7 +319,7 @@ export function functionIdsAreValid(functions: { id: string; platform: string }[ if (invalidIds.length !== 0) { const msg = `${invalidIds.map((f) => f.id).join(", ")} function name(s) can only contain letters, ` + - `numbers, hyphens, and not exceed 62 characters in length`; + `numbers, hyphens, and not exceed 63 characters in length`; throw new FirebaseError(msg); } } From ea9bbf9b8d536e9c36852d08d77440257684fb7f Mon Sep 17 00:00:00 2001 From: Rishun <42071202+ree-rishun@users.noreply.github.com> Date: Mon, 15 Jun 2026 06:44:45 +0900 Subject: [PATCH 2/2] fix: include underscores in function name validation error message Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/deploy/functions/validate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deploy/functions/validate.ts b/src/deploy/functions/validate.ts index d0df11dd5f3..df544b5c02a 100644 --- a/src/deploy/functions/validate.ts +++ b/src/deploy/functions/validate.ts @@ -319,7 +319,7 @@ export function functionIdsAreValid(functions: { id: string; platform: string }[ if (invalidIds.length !== 0) { const msg = `${invalidIds.map((f) => f.id).join(", ")} function name(s) can only contain letters, ` + - `numbers, hyphens, and not exceed 63 characters in length`; + `numbers, underscores, hyphens, and not exceed 63 characters in length`; throw new FirebaseError(msg); } }