Skip to content

Commit 5bbb713

Browse files
committed
fix: typo.
1 parent a97f5ff commit 5bbb713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Validation/FormatRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function string($str = null): bool
123123
*/
124124
public function decimal(?string $str = null): bool
125125
{
126-
return (bool) preg_match('/\A[-+]?[0-9]{0,}\.?[0-9]+\Z/', $str);
126+
return (bool) preg_match('/\A[-+]?[0-9]{0,}\.?[0-9]+\z/', $str);
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)