Skip to content

Commit 7a8f1d6

Browse files
committed
Merge pull request #8 from courentin/accent-alpha
Accents detection
2 parents 66cd13b + 6ccd5e1 commit 7a8f1d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SimpleValidator/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,11 @@ protected static function float($input) {
280280
}
281281

282282
protected static function alpha($input) {
283-
return (preg_match("#^[a-zA-Z]+$#", $input) == 1);
283+
return (preg_match("#^[a-zA-ZÀ-ÿ]+$#", $input) == 1);
284284
}
285285

286286
protected static function alpha_numeric($input) {
287-
return (preg_match("#^[a-zA-Z0-9]+$#", $input) == 1);
287+
return (preg_match("#^[a-zA-ZÀ-ÿ0-9]+$#", $input) == 1);
288288
}
289289

290290
protected static function ip($input) {

0 commit comments

Comments
 (0)