Added uuid command and function to format uuids

This commit is contained in:
2023-11-19 19:32:46 +01:00
parent 37f2678abb
commit 1b3e312365
3 changed files with 65 additions and 1 deletions

5
utils/functions/uuid.js Normal file
View File

@@ -0,0 +1,5 @@
function formatUuid(uuid) {
return uuid.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5')
}
module.exports = { formatUuid }