make hashes lowercase

This commit is contained in:
2024-01-05 12:32:29 +01:00
parent 07388e56be
commit 1bf6fe0aa3

View File

@@ -1,6 +1,6 @@
import Sqids from 'sqids';
let sqids = new Sqids({ minLength: 6 });
let sqids = new Sqids({ minLength: 6, alphabet: 'abcdefghijklmnopqrstuvwxyz0123456789' });
export function hashcode(str) {
for (var i = 0, h = 9; i < str.length; ) h = Math.imul(h ^ str.charCodeAt(i++), 9 ** 9);