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 = () => {
|
const debreviate = () => {
|
||||||
clearFormValidity(debreviateForm);
|
clearFormValidity(debreviateForm);
|
||||||
const abbreviation = abbreviationInput.value.trim();
|
const abbreviation = abbreviationInput.value.trim().toLowerCase();
|
||||||
if (abbreviation === "") {
|
if (abbreviation === "") {
|
||||||
showInputInvalid(abbreviationInput, "Abbreviation should be non-empty.");
|
showInputInvalid(abbreviationInput, "Abbreviation should be non-empty.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue