Permalink
Browse files

Add regex comment for CUser::IsValidUserName()

  • Loading branch information...
1 parent e83e14a commit 4a4104a480e021b735efa82076aa723d4db5ddd9 Alexey Sokolov committed Jun 2, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 User.cpp
View
@@ -742,6 +742,7 @@ bool CUser::GetTimestampAppend() const { return m_bAppendTimestamp; }
bool CUser::GetTimestampPrepend() const { return m_bPrependTimestamp; }
bool CUser::IsValidUserName(const CString& sUserName) {
+ // /^[a-zA-Z][a-zA-Z@._\-]*$/
const char* p = sUserName.c_str();
if (sUserName.empty()) {

0 comments on commit 4a4104a

Please sign in to comment.