From 916b83d321d0f3f784c548e8d1530f3ae7974e24 Mon Sep 17 00:00:00 2001 From: Janusz Date: Thu, 29 Feb 2024 13:01:52 +0100 Subject: [PATCH] issue 719: fixed numeric pattern (#720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Janusz PaszyƄski --- 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'), ]; }