Spaces removed

This commit is contained in:
amtkhdkr
2014-05-21 12:05:27 +05:30
parent 50119a493c
commit 091ff10039

View File

@@ -102,14 +102,10 @@ void RegisterScreen::doRegister()
m_info_widget->setText(_("Email has to be between 4 and 50 characters long!"), false);
}
else if (email.find("@")== -1 || email.find(".")== -1 ||\
( email.find_last_of(".") - email.find_last_of("@") <= 2 ) ||\
email.find_last_of("@")==0 )
{
m_info_widget->setText(_("Email is invalid!"), false);
}
else
{