Skip to content

Commit

Permalink
fix: typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ytetsuro committed Jan 11, 2021
1 parent a97f5ff commit 5bbb713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Validation/FormatRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function string($str = null): bool
*/
public function decimal(?string $str = null): bool
{
return (bool) preg_match('/\A[-+]?[0-9]{0,}\.?[0-9]+\Z/', $str);
return (bool) preg_match('/\A[-+]?[0-9]{0,}\.?[0-9]+\z/', $str);
}

/**
Expand Down

0 comments on commit 5bbb713

Please sign in to comment.