Skip to content

Commit

Permalink
Modifying validator to support & and ß
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Korla committed Aug 5, 2015
1 parent dc265ba commit 7e76d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/validators.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

Validator::extend('alpha_space', function ($attribute,$value,$parameters) {
return preg_match("/^[\s\n\-+:?#@*=;%$\"~'\/\(\)_,!.a-zA-Z0-9\pL\pN\pM_-]+$/um",$value);
return preg_match("/^[\s\n\-+:?#@*=;%$\"~'\/\(\)_,!.a-zA-Z0-9\pL\pN\pM_-]+$/um",$value);
// whitespace, newline, -, +, :, ?, #, ~, ', /, (, ), _, ',', !, ., a-z, A-Z, 0-9,
// Unicode Letter (\pL), Unicode Number (\pN), Unicode Spacing Combining Mark (\p{Mc} (eastern language vowels)), _ (again?), - (again?)
// patterm must be matched at least once (empty strings will not pass)
Expand Down

0 comments on commit 7e76d88

Please sign in to comment.