From aaef4e16290c099954fec11a8ae8937a7cbd42f6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 22 Apr 2022 12:04:11 +0200 Subject: [PATCH] store: use lower-case for buffer keys --- store.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/store.js b/store.js index 6530428..c94b258 100644 --- a/store.js +++ b/store.js @@ -57,11 +57,12 @@ export class Buffer { } key(buf) { + // TODO: use case-mapping here somehow return JSON.stringify({ - name: buf.name, + name: buf.name.toLowerCase(), server: { url: buf.server.url, - nick: buf.server.nick, + nick: buf.server.nick.toLowerCase(), bouncerNetwork: buf.server.bouncerNetwork, }, });