Add regex comment for CUser::IsValidUserName()

This commit is contained in:
Alexey Sokolov
2011-06-02 08:10:46 +07:00
parent e83e14ab67
commit 4a4104a480

View File

@@ -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()) {