[PC-BSD Commits] r13461 - pcbsd/current/src-qt4/pc-sysinstaller

svn at pcbsd.org svn at pcbsd.org
Thu Oct 20 13:31:26 PDT 2011


Author: kris
Date: 2011-10-20 13:31:26 -0700 (Thu, 20 Oct 2011)
New Revision: 13461

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp
Log:

Fix syntax error in regexp for verifying username



Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp	2011-10-20 19:05:38 UTC (rev 13460)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp	2011-10-20 20:31:26 UTC (rev 13461)
@@ -32,7 +32,7 @@
   //Setup any regular expressions we will need
   passwordRegExp.setPattern("([a-z]*[A-Z]*[0-9]*[!\"\xef\xbf\xbd$%^&*()_+=\xef\xbf\xbd#'`@~:?<>|{}\\-.]*)+");
 
-  usernameRegExp.setPattern("[a-z][A-Z][0-9]");
+  usernameRegExp.setPattern("[a-z]*[A-Z]*[0-9]*");
 
   // Disable add / apply buttons
   pushAddUser->setEnabled(false);



More information about the Commits mailing list