Skip to content

Commit 59c498f

Browse files
committed
fix: split orgid according to new line
1 parent 348b2ba commit 59c498f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/package/pushupgrade/schedule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class PackagePushScheduleCommand extends SfCommand<PackagePushScheduleRes
7171
async function readOrgListFile(filePath: string): Promise<string[]> {
7272
try {
7373
const fileContent = await fs.readFile(filePath, 'utf-8');
74-
const orgIds = fileContent.split(/\s+/).filter((id) => id.length > 0);
74+
const orgIds = fileContent.split(/\r?\n/).filter((id) => id.trim().length > 0);
7575

7676
return orgIds.filter((id: string) => /^00D[a-zA-Z0-9]{12}$/.test(id));
7777
} catch (error) {

0 commit comments

Comments
 (0)