From f167637ee889af30d47d46b0e4556d51951eaf50 Mon Sep 17 00:00:00 2001 From: pixer415 <85858954+pixer415@users.noreply.github.com> Date: Sat, 11 May 2024 16:22:59 -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 6736e0d..169d16b 100644 --- a/index.html +++ b/index.html @@ -102,7 +102,7 @@ // listeners box.addEventListener("input", (e) => { var currentValue = e.target.value.substring(0, box.getAttribute("maxlength")); - if (pattrn !== null && !pattrn.test(paramValue)) { + if (pattrn === null || !pattrn.test(paramValue)) { e.target.value = lastValue; } else { lastValue = currentValue;