We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50bd1c4 commit 400a68bCopy full SHA for 400a68b
src/utils/object-url.ts
@@ -1,7 +1,7 @@
1
import { SquareCloudBlobError } from "../structures/error";
2
3
const objectUrlRegex =
4
- /^(?<url>https:\/\/public-blob\.squarecloud\.dev)?\/?(?<userId>[\w\d]+\/)(?<prefix>[\w\d\-_]+\/)?(?<name>[\w\d_]+)-(?<hash>[\w\d]+)(-ex\d+)?\.(?<extension>\w+)$/;
+ /^(?<url>https:\/\/public-blob\.squarecloud\.dev)?\/?(?<userId>[\w\d]+\/)(?<prefix>[\w\d\-_]+\/)?(?<name>[\w\d_]+)(?:-(?<hash>[\w\d]+))?(?:-ex\d+)?\.(?<extension>\w+)$/;
5
6
/**
7
* Parses the object URL to extract id, userId, prefix, name, hash and extension.
0 commit comments