2024-07-27 02:39:18 -04:00
|
|
|
module.exports = function (uuid) {
|
2024-08-12 05:13:32 -04:00
|
|
|
const splitUUID = uuid.replace(/[^0-9a-f]/g, '').replace(/.{1,8}/g, a => { return `0x${a}` }).match(/.{1,10}/g)
|
2024-07-28 02:37:31 -04:00
|
|
|
const numUUID = [+splitUUID[0] << 0, +splitUUID[1] << 0, +splitUUID[2] << 0, +splitUUID[3] << 0]
|
|
|
|
return numUUID
|
2024-07-27 02:39:18 -04:00
|
|
|
}
|