From 302ce1da28eb0f7f7771245ca51fefd60565b6de Mon Sep 17 00:00:00 2001 From: pixer415 <85858954+pixer415@users.noreply.github.com> Date: Wed, 29 May 2024 03:23:58 -0400 Subject: [PATCH] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1fa73fd..7698de6 100644 --- a/index.html +++ b/index.html @@ -104,7 +104,7 @@ // listeners function do_on_input(e) { var currentValue = e.target.value.substring(0, box.getAttribute("maxlength")); - if (pattrn === null || !pattrn.test(currentValue)) { + if (pattrn !== null && !pattrn.test(currentValue)) { e.target.value = lastValue; } else { lastValue = currentValue;