mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Clean up validator because the import would fail.
This commit is contained in:
@@ -12,7 +12,7 @@ class FireflyValidator extends Validator
|
|||||||
{
|
{
|
||||||
public function validateAlphabasic($attribute, $value, $parameters)
|
public function validateAlphabasic($attribute, $value, $parameters)
|
||||||
{
|
{
|
||||||
$pattern = '/[^a-z_\-0-9 ]/i';
|
$pattern = '/[^[:alnum:]_\-\.\& \(\)\'"]/iu';
|
||||||
if (preg_match($pattern, $value)) {
|
if (preg_match($pattern, $value)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user