From: erickson Date: Sun, 3 Sep 2006 23:28:05 +0000 (+0000) Subject: fixed username regex bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6fb88386fb8555e92cd93547c18e15329b336991;p=Evergreen.git fixed username regex bug git-svn-id: svn://svn.open-ils.org/ILS/trunk@5903 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Evergreen/xul/staff_client/server/patron/ue_config.js b/Evergreen/xul/staff_client/server/patron/ue_config.js index 26abc4c0dc..8838cc6cf5 100644 --- a/Evergreen/xul/staff_client/server/patron/ue_config.js +++ b/Evergreen/xul/staff_client/server/patron/ue_config.js @@ -40,7 +40,7 @@ var myPerms = [ var dataFields; const numRegex = /^\d+$/; const wordRegex = /^\w+$/; -const unameRegex = /^[a-zA-Z][\.\w\@-]*$/; +const unameRegex = /^\w[\.\w\@-]*$/; const ssnRegex = /^\d{3}-\d{2}-\d{4}$/; const dlRegex = /^[a-zA-Z]{2}-\w+/; /* driver's license */ const phoneRegex = /^\d{3}-\d{3}-\d{4}(| ex\d+)$/i;