From aa2449bc162e14c4f522bc0c159b5879c237d5ed Mon Sep 17 00:00:00 2001 From: sheychen Date: Tue, 1 May 2018 18:59:15 +0200 Subject: [PATCH] Fix: Password regex --- src/Input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input.php b/src/Input.php index b055478..0545ed0 100644 --- a/src/Input.php +++ b/src/Input.php @@ -48,7 +48,7 @@ class Input extends Element{ $this->data['type'] = 'password'; $this->data['password'] = true; if($complexity){ - $regex = '^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.[\W]).{8,}$'; + $regex = '^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W).{8,}$'; $this->data['pattern'] = $regex; $this->data['regex'] = $regex; $this->data['title'] = 'Mot de passe trop simple';