From 1bf6fe0aa36f44172c7f517a8bb5ac761e814b53 Mon Sep 17 00:00:00 2001 From: apt-get Date: Fri, 5 Jan 2024 12:32:29 +0100 Subject: [PATCH] make hashes lowercase --- src/lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils.js b/src/lib/utils.js index aeee289..6899f96 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -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);