From c9b0745761df5963a4a09fad27200eb77ecfbf90 Mon Sep 17 00:00:00 2001 From: ifurther <55025025+ifurther@users.noreply.github.com> Date: Thu, 16 May 2024 00:22:38 +0800 Subject: [PATCH] feat(appx): update validCharactersRegex in applicationid --- packages/app-builder-lib/src/targets/AppxTarget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-builder-lib/src/targets/AppxTarget.ts b/packages/app-builder-lib/src/targets/AppxTarget.ts index 632a627b618..31c08147b75 100644 --- a/packages/app-builder-lib/src/targets/AppxTarget.ts +++ b/packages/app-builder-lib/src/targets/AppxTarget.ts @@ -225,7 +225,7 @@ export default class AppXTarget extends Target { case "applicationId": { const result = options.applicationId || options.identityName || appInfo.name - const validCharactersRegex = /^[a-zA-Z0-9.-]+$/ + const validCharactersRegex = /^([A-Za-z][A-Za-z0-9]*)(\.[A-Za-z][A-Za-z0-9]*)*$/ const identitynumber = parseInt(result, 10) if (!isNaN(identitynumber)) { log.warn(`Remove the ${identitynumber}`)