Skip to content

Commit 008877c

Browse files
authored
account for :tag
1 parent 521904d commit 008877c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if (!collection.includes(":")) {
6161
}
6262
console.log("resolved collection", collection);
6363

64-
if (!/^ghcr\.io\/.*?\/.*?$/.test(collection)) {
64+
if (!/^ghcr\.io\/.*?\/.*?:.*?$/.test(collection)) {
6565
throw new DOMException("Only ghcr.io things are supported right now")
6666
}
6767

@@ -72,7 +72,7 @@ const devcontainerCollection = {
7272
features: [] as any[],
7373
templates: [] as any[],
7474
};
75-
const ids = await getAllThings(collection.match(/^ghcr\.io\/(.*?\/.*?)$/)[1]);
75+
const ids = await getAllThings(collection.match(/^ghcr\.io\/(.*?\/.*?):.*?$/)[1]);
7676
console.log(ids)
7777

7878
for (const id of ids) {

0 commit comments

Comments
 (0)