Skip to content

Commit

Permalink
feat(appx): update validCharactersRegex in applicationid
Browse files Browse the repository at this point in the history
  • Loading branch information
ifurther committed May 15, 2024
1 parent b6f2499 commit c9b0745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/targets/AppxTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit c9b0745

Please sign in to comment.