Skip to content

Commit

Permalink
turns out numeric numbers can be negative
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris DeGroat committed Oct 10, 2014
1 parent 49d369f commit 72174f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc.php
Expand Up @@ -55,7 +55,7 @@ public static function alphanumeric($string)

public static function numeric($string)
{
return preg_replace("/(^\s+)|(\s+$)/us", "", preg_replace("/[^0-9\.]/", '', $string));
return preg_replace("/(^\s+)|(\s+$)/us", "", preg_replace("/[^0-9\-\.]/", '', $string));
}
}

Expand Down

0 comments on commit 72174f0

Please sign in to comment.