]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/util.ts
ZIP Imports: Added API examples, finished testing
[bookstack] / resources / js / services / util.ts
index 1a6fa55b6b06a9903d33d74d42bad379281d776f..61a02a3d24de1d97afcee28e22005b89b7bfef60 100644 (file)
@@ -164,5 +164,5 @@ export function cyrb53(str: string, seed: number = 0): string {
     h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);
     h2  = Math.imul(h2 ^ (h2 >>> 16), 2246822507);
     h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
-    return (4294967296 * (2097151 & h2) + (h1 >>> 0)) as string;
+    return String((4294967296 * (2097151 & h2) + (h1 >>> 0)));
 }
\ No newline at end of file