User tests: Successful: Unsuccessful:
The float and double filter changes the value to an integer if there is no number prior to the decimal.
.0125 => 125
0.0125 => 0.0125
Modified the RegExp to look for a leading decimal.
Create a form with a float/double filtered text field, and pass a decimal value without a leading number.
Example: .0125
The value should remain a decimal like one of the following:
.0125
0.0125
The value gets converted to a whole number by removing the decimal and leading zeros.
Example: .0125 becomes 125
Status | New | ⇒ | Pending |
Category | ⇒ | External Library Libraries Composer Change |
your regexp will allow
.44.55
Can you send this changes against the upstream repo: https://github.com/joomla-framework/utilities else this is going to be overwritten with the next update of the composer package.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-03-05 20:58:23 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
?
|
@jeffda no need to open two separate PR for small changes in two files you can fix in same PR
Thanks