File size: 368 Bytes
f42b4a1
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}