From d3f3b54cae24cd945fe6a3c8c705d9444017596c Mon Sep 17 00:00:00 2001 From: Luc Everse Date: Wed, 1 Feb 2023 15:03:15 +0100 Subject: [PATCH] Transform entered acronym to lowercase to make regex work --- src/main/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/main.js b/src/main/js/main.js index 60481f7..cd2c568 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -28,7 +28,7 @@ doAfterLoad(() => { const debreviate = () => { clearFormValidity(debreviateForm); - const abbreviation = abbreviationInput.value.trim(); + const abbreviation = abbreviationInput.value.trim().toLowerCase(); if (abbreviation === "") { showInputInvalid(abbreviationInput, "Abbreviation should be non-empty."); return;