Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
pixer415 authored May 29, 2024
1 parent 0732f43 commit 4bca036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
function do_on_input(e) {
if (e.target.value.length > box.getAttribute("maxlength")) {
e.target.value = e.target.value.slice(0, box.getAttribute("maxlength"));
} else if (pattrn !== null && !pattrn.test(e.target.value)) {
if (pattrn !== null && !pattrn.test(e.target.value)) {
e.target.value = lastValue;
} else {
lastValue = e.target.value;
Expand Down

0 comments on commit 4bca036

Please sign in to comment.