![]() When asked to fix the bug, it came up with a different regex, which would completely change what's valid and what's not, so that's totally wrong: /^\s*(-)?([0-9]+)(?:[,.]([0-9]{1,2}))?\s*$/ When asked to fix it in another way, without changing the regex, it suggested stripping the sign completely, which is even more wrong. So I fixed it myself :) |
||
---|---|---|
.. | ||
amount.t | ||
amount2.t |