From a79bd4a8627dda185d9a378db6510e5e2b789f79 Mon Sep 17 00:00:00 2001 From: ccmdi Date: Fri, 14 Aug 2026 11:36:59 -0400 Subject: [PATCH] fix savings ratio being case sensitive --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 449c7ff..166dddd 100644 --- a/main.js +++ b/main.js @@ -50,9 +50,10 @@ function updateOutput () { const alphabet = settings.emoji ? outputAlphabetEmoji : outputAlphabetASCII; const output = compress(input, alphabet); let inputNormalized = input; - if (input.startsWith("https://")) { + const inputLower = input.toLowerCase(); + if (inputLower.startsWith("https://")) { inputNormalized = input.slice(8); - } else if (input.startsWith("http://")) { + } else if (inputLower.startsWith("http://")) { inputNormalized = input.slice(7); } let excessiveParams = false;