From f8e214e58c0e70b85b16837b4f886eec0fbc87d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janusz=20Paszy=C5=84ski?= Date: Mon, 26 Feb 2024 11:19:29 +0100 Subject: [PATCH] issue 719: fixed numeric pattern --- src/Kris/LaravelFormBuilder/RulesParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kris/LaravelFormBuilder/RulesParser.php b/src/Kris/LaravelFormBuilder/RulesParser.php index e0bb9ce8..6f7452e6 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'), ]; }