Converted main codebase to typescript
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
5
src/utils/functions/uuid.ts
Normal file
5
src/utils/functions/uuid.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
function formatUuid(uuid: string): string {
|
||||
return uuid.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5")
|
||||
}
|
||||
|
||||
export { formatUuid }
|
||||
Reference in New Issue
Block a user