Commit 39a0adbb authored by Stefan Busemann's avatar Stefan Busemann
Browse files

Merge branch 'bugfix/change-preg-match-for-lowercase-validation' into 'develop'

Change preg_match() for lowercase validation

See merge request !83
parents af193abc 2b04b1b3
Pipeline #4961 passed with stages
in 4 minutes and 12 seconds
......@@ -134,7 +134,7 @@ class ServersideValidator extends \In2code\Femanager\Domain\Validator\Serverside
*/
protected function checkLowerCharsValidation($user, $value, $validationSetting, $fieldName)
{
if (preg_match('/[A-Z]/', $value) !== false) {
if (preg_match('/[A-Z]/', $value) !== 0) {
$this->addError(ucfirst($fieldName) . ' may not contain upper case characters!', $fieldName);
$this->isValid = false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment