diff --git a/application/controllers/users.php b/application/controllers/users.php index e5acb80..70b735b 100644 --- a/application/controllers/users.php +++ b/application/controllers/users.php @@ -67,7 +67,7 @@ class Users extends MY_Controller { array( 'field' => 'phone', 'label' => 'lang:field_phone', - 'rules' => 'trim|regex_match[/^\+\d{2,4}\w\d{2,4}\w\d{3,10}+$/i]', + 'rules' => 'trim|regex_match[/^\+\d{2,4}\s\d{2,4}\s\d{3,10}+$/i]', ) ); $this->form_validation->set_rules($config); @@ -127,7 +127,7 @@ class Users extends MY_Controller { array( 'field' => 'phone', 'label' => 'lang:field_phone', - //'rules' => 'trim|regex_match[/^\+\d{2,4}\w\d{2,4}\w\d{3,10}+$/i]', + 'rules' => 'trim|regex_match[/^\+\d{2,4}\s\d{2,4}\s\d{3,10}+$/i]', ) ); $this->form_validation->set_rules($config);