diff --git a/src/Kris/LaravelFormBuilder/RulesParser.php b/src/Kris/LaravelFormBuilder/RulesParser.php index e0bb9ce..6f7452e 100644 --- a/src/Kris/LaravelFormBuilder/RulesParser.php +++ b/src/Kris/LaravelFormBuilder/RulesParser.php @@ -175,7 +175,7 @@ protected function numeric() } return [ - 'pattern' => '[-+]?[0-9]*[.,]?[0-9]+', + 'pattern' => '[\\-+]?[0-9]*[.,]?[0-9]+', 'title' => $this->getTitle('numeric'), ]; }