From 474a0ec0e92cdf7d6fcc556fb170da110a90c0d7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 30 Dec 2020 14:35:50 +0800 Subject: [PATCH] fix match for bad chars --- widgets/SecurePass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index 8190c7d8..732db5b7 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -179,7 +179,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { return true; } - if (value.match(/[\x21-\x7e]*/)) { + if (!value.match(/[\x21-\x7e]+/)) { this.markInvalid(this.errors.PwdBadChar); return false; } -- 2.39.2