make hashes lowercase
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import Sqids from 'sqids';
|
import Sqids from 'sqids';
|
||||||
|
|
||||||
let sqids = new Sqids({ minLength: 6 });
|
let sqids = new Sqids({ minLength: 6, alphabet: 'abcdefghijklmnopqrstuvwxyz0123456789' });
|
||||||
|
|
||||||
export function hashcode(str) {
|
export function hashcode(str) {
|
||||||
for (var i = 0, h = 9; i < str.length; ) h = Math.imul(h ^ str.charCodeAt(i++), 9 ** 9);
|
for (var i = 0, h = 9; i < str.length; ) h = Math.imul(h ^ str.charCodeAt(i++), 9 ** 9);
|
||||||
|
|||||||
Reference in New Issue
Block a user