Skip to content

Commit ef3c959

Browse files
riglarclaude
andcommitted
Add support for dev console URL parsing
Update regex pattern to match both production (console.devicecloud.dev) and dev (dev.console.devicecloud.dev) console URLs when extracting upload IDs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 820a2bf commit ef3c959

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30065,7 +30065,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
3006530065
}
3006630066
finally {
3006730067
uploadId =
30068-
((_a = testOutput === null || testOutput === void 0 ? void 0 : testOutput.match(/https:\/\/console\.devicecloud\.dev\/results\?upload=([a-zA-Z0-9-]+)/)) === null || _a === void 0 ? void 0 : _a[1]) || null;
30068+
((_a = testOutput === null || testOutput === void 0 ? void 0 : testOutput.match(/https:\/\/(?:dev\.)?console\.devicecloud\.dev\/results\?upload=([a-zA-Z0-9-]+)/)) === null || _a === void 0 ? void 0 : _a[1]) || null;
3006930069
}
3007030070
if (!uploadId) {
3007130071
throw new Error('Failed to get upload ID from console URL');

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const run = async (): Promise<void> => {
201201
} finally {
202202
uploadId =
203203
testOutput?.match(
204-
/https:\/\/console\.devicecloud\.dev\/results\?upload=([a-zA-Z0-9-]+)/
204+
/https:\/\/(?:dev\.)?console\.devicecloud\.dev\/results\?upload=([a-zA-Z0-9-]+)/
205205
)?.[1] || null;
206206
}
207207

0 commit comments

Comments
 (0)