Skip to content

Commit

Permalink
Merge pull request #1027 from balticer/fix-validation-ampersand-and-s…
Browse files Browse the repository at this point in the history
…harp-s

Modifying validator to support & and ß
  • Loading branch information
snipe committed Aug 5, 2015
2 parents dc265ba + 7e76d88 commit e253d61
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 e253d61

Please sign in to comment.