You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regex for isFloat allows a string that is just a period. This is a consequence of the fact that nothing is required before the decimal (for cases like .123) and that nothing is required after the decimal (for cases like 123.).
The regex for isFloat allows a string that is just a period. This is a consequence of the fact that nothing is required before the decimal (for cases like
.123
) and that nothing is required after the decimal (for cases like123.
).You may want to go with the regex at the bottom of http://www.regular-expressions.info/floatingpoint.html, which I believe checks for all of the same properties that isFloat() checks for.
The text was updated successfully, but these errors were encountered: