Skip to content

Commit

Permalink
fix: suppot 15-char IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jul 16, 2022
1 parent a6ec3bf commit 0674125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/force/package1/beta/version/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class Package1VersionDisplayCommand extends SfdxCommand {
longDescription: messages.getMessage('packageIdLong'),
required: true,
validate: (id) => {
if (id.startsWith('04t') && id.length === 18) {
if (id.startsWith('04t') && [18, 15].includes(id.length)) {
return true;
} else {
throw new SfError(messages.getMessage('packageIdInvalid'));
Expand Down

0 comments on commit 0674125

Please sign in to comment.