forked from tools/debreviator
Transform entered acronym to lowercase to make regex work
This commit is contained in:
parent
d0d2be80ef
commit
d3f3b54cae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue