input-number icon indicating copy to clipboard operation
input-number copied to clipboard

defaultParser isn't correct

Open kyriiherman opened this issue 7 years ago • 0 comments

the bug is here: https://github.com/react-component/input-number/blob/master/src/index.js#L16 Current regex matches any letter. I think the correct regex should look like /[^\d\.-]+/g

kyriiherman avatar Mar 26 '19 17:03 kyriiherman