ID ohne strich

This commit is contained in:
Moritz Utcke
2025-03-12 19:56:01 -03:00
parent 8964c9f533
commit 2391629b36

View File

@@ -7,7 +7,5 @@ function murmurHash36(str: string) {
}
export function shortenUID(uid: string) {
const str = murmurHash36(uid);
const mid = Math.floor(str.length / 2);
return [str.slice(0, mid), str.slice(mid)].join("-");
return murmurHash36(uid);
}