core: fix import command regex

This commit is contained in:
Aiden Cline
2026-01-01 15:18:32 -06:00
parent 5f2be55e54
commit dccb8875ad

View File

@@ -31,9 +31,9 @@ export const ImportCommand = cmd({
const isUrl = args.file.startsWith("http://") || args.file.startsWith("https://")
if (isUrl) {
const urlMatch = args.file.match(/https?:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/)
const urlMatch = args.file.match(/https?:\/\/opncd\.ai\/share\/([a-zA-Z0-9_-]+)/)
if (!urlMatch) {
process.stdout.write(`Invalid URL format. Expected: https://opncd.ai/s/<slug>`)
process.stdout.write(`Invalid URL format. Expected: https://opncd.ai/share/<slug>`)
process.stdout.write(EOL)
return
}