Transform entered acronym to lowercase to make regex work

This commit is contained in:
Luc Everse 2023-02-01 15:03:15 +01:00
parent d0d2be80ef
commit d3f3b54cae
1 changed files with 1 additions and 1 deletions

View File

@ -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;