Skip to content

Commit 0674125

Browse files
committed
fix: suppot 15-char IDs
1 parent a6ec3bf commit 0674125

File tree

1 file changed

+1
-1
lines changed
  • src/commands/force/package1/beta/version

1 file changed

+1
-1
lines changed

src/commands/force/package1/beta/version/display.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class Package1VersionDisplayCommand extends SfdxCommand {
2424
longDescription: messages.getMessage('packageIdLong'),
2525
required: true,
2626
validate: (id) => {
27-
if (id.startsWith('04t') && id.length === 18) {
27+
if (id.startsWith('04t') && [18, 15].includes(id.length)) {
2828
return true;
2929
} else {
3030
throw new SfError(messages.getMessage('packageIdInvalid'));

0 commit comments

Comments
 (0)