Commit 5cadf314 authored by Goldenscarab's avatar Goldenscarab

Monetary

parent d64a52d0
......@@ -25,7 +25,7 @@ class Monetary implements Rule
*/
public function passes($attribute, $value)
{
return preg_match('#^[0-9 ]+([.,][0-9]{1,2})?$#', $value) === 1;
return preg_match('#^-?[0-9 ]+([.,][0-9]{1,2})?$#', $value) === 1;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment