We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9641c14 commit d07404bCopy full SHA for d07404b
Quick.RegEx.Utils.pas
@@ -92,12 +92,12 @@ implementation
92
93
class function TRegExUtils.IsNumber(const aValue: string): Boolean;
94
begin
95
- Result := TRegEx.IsMatch(aValue,'^\d*(\.\d+)?$');
+ Result := TRegEx.IsMatch(aValue,'^(-|)\d*(\.\d+)?$');
96
end;
97
98
class function TRegExUtils.IsFloat(const aValue: string): Boolean;
99
100
- Result := TRegEx.IsMatch(aValue,'^\d*\.\d+$');
+ Result := TRegEx.IsMatch(aValue,'^(-|)\d*\.\d+$');
101
102
103
class function TRegExUtils.IsInteger(const aValue: string): Boolean;
0 commit comments