bug修复
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Qumolama.d
2022-05-03 19:05:28 +08:00
parent 3b8712a212
commit 594fbdc75b
4 changed files with 23 additions and 4 deletions

View File

@ -19,7 +19,7 @@ export function uuid(input) {
export function noSymboUUID(input) {
let md5Bytes = Crypto.createHash('md5').update(input).digest()
md5Bytes[6] &= 0x0f; // clear version
md5Bytes[6] &= 0x0f; // clear versio\n
md5Bytes[6] |= 0x30; // set to version 3
md5Bytes[8] &= 0x3f; // clear variant
md5Bytes[8] |= 0x80; // set to IETF variant
@ -27,7 +27,7 @@ export function noSymboUUID(input) {
}
export function uuidToNoSymboUUID(uuid) {
return uuid.replace('-', '')
return uuid.replace(/-/g, '')
}
export function toSymboUUID(uuid) {

3
src/test.js Normal file
View File

@ -0,0 +1,3 @@
import * as Server from './index.js'
console.log(Server)