ai-tube / src /lib /utils /parseAssetToCheckIfLatent.ts
jbilcke's picture
working to improve the clap format
f42b4a1
raw
history blame
No virus
368 Bytes
export function parseAssetToCheckIfLatent(url: string) {
let ext = url.toLowerCase().split(".").pop() || ""
ext = ext.split("?").shift() || ""
// check if it's a Clap or a LatentScript file
// the .ls is usually small (it's like Makrdown)
// while the Clap can be huge (many gbs)
if (ext === "clap" || ext === "ls") {
return true
}
return false
}