Skip to content

Commit 916b83d

Browse files
EloarJanusz Paszyński
andauthored
issue 719: fixed numeric pattern (#720)
Co-authored-by: Janusz Paszyński <[email protected]>
1 parent cdd3922 commit 916b83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kris/LaravelFormBuilder/RulesParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ protected function numeric()
175175
}
176176

177177
return [
178-
'pattern' => '[-+]?[0-9]*[.,]?[0-9]+',
178+
'pattern' => '[\\-+]?[0-9]*[.,]?[0-9]+',
179179
'title' => $this->getTitle('numeric'),
180180
];
181181
}

0 commit comments

Comments
 (0)