Added uuid command and function to format uuids
This commit is contained in:
5
utils/functions/uuid.js
Normal file
5
utils/functions/uuid.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function formatUuid(uuid) {
|
||||
return uuid.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, '$1-$2-$3-$4-$5')
|
||||
}
|
||||
|
||||
module.exports = { formatUuid }
|
||||
Reference in New Issue
Block a user