feat: recorded import grants, unclaimed creators and claiming (#15)
Release / release (push) Successful in 3s
CI / test (push) Successful in 1m24s
CI / image (apps/api/Dockerfile, t5de-hub-api) (push) Successful in 7s
CI / image (apps/web/Dockerfile, t5de-hub-web) (push) Successful in 13s

Co-authored-by: dhkatz <[email protected]>
This commit was merged in pull request #15.
This commit is contained in:
dhkatz authored and dhkatz committed 2026-11-07 22:49:06 +00:00
1 parent e6a97be894
commit 8f6dacba10
18 files changed
+5222 -26

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// IMVU product IDs in what people type or paste.
/** IMVU product IDs: numbers, or shop links (`products_id=123`, `product-123`), separated by spaces, commas or lines. */
export function productIDs(text: string): number[] | undefined {
const out = new Set<number>();
for (const part of text.split(/[\s,]+/).filter(Boolean)) {
const m = part.match(/(?:products_id=|product-)(\d+)/) ?? part.match(/^(\d+)$/);
const n = m ? Number(m[1]) : NaN;
if (!Number.isSafeInteger(n) || n <= 0) return undefined;
out.add(n);
}
return [...out];
}