Various changes to support the removed old code.

This commit is contained in:
James Cole
2014-11-11 21:09:56 +01:00
parent f08fcc36fb
commit 5cb9907bf8
10 changed files with 266 additions and 40 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace FireflyIII\Shared\Validation;
use Illuminate\Validation\Validator;
/**
* Class FireflyValidator
*
* @package FireflyIII\Shared\Validation
*/
class FireflyValidator extends Validator
{
public function validateAlphabasic($attribute, $value, $parameters)
{
$pattern = '/[^[:alnum:]_\-\.\& \(\)\'"]/iu';
if (preg_match($pattern, $value)) {
return false;
} else {
return true;
}
}
}