Open TiagoSimionato opened 3 weeks ago
unMask
unMask('a', 'currency') unMask('(', 'currency')
NaN
The function should return '0', like when it's called with an empty string, so it can still be masked again.
The function returns 'NaN'
'NaN'
Version: npm version or "main" 0.14.2
Steps to reproduce
unMask
with any non-empty string not containing a number.NaN
is returned as a stringExpected behaviour
The function should return '0', like when it's called with an empty string, so it can still be masked again.
Actual behaviour
The function returns
'NaN'
Environment
react-native-mask-text
Version: npm version or "main" 0.14.2