Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util.parseString is trimming zero in front of number #1550

Closed
DarkFisk opened this issue Sep 18, 2023 · 2 comments
Closed

util.parseString is trimming zero in front of number #1550

DarkFisk opened this issue Sep 18, 2023 · 2 comments
Labels

Comments

@DarkFisk
Copy link
Contributor

Hello,
I had a problem that when I have array, and even added in schema validation that only strings allowed, jsoneditor always trimming 0 in front of number, after some investigation I found that parseString util method is casting value like 0102031234 to number and removes zero in front and making 102031234, that is absolutely wrong. (this number is actually example of CPR number in Denmark, it is like your passport number)
Please, take into consideration my PR

@josdejong josdejong added the bug label Sep 21, 2023
@josdejong
Copy link
Owner

Fixed via #1549

@josdejong
Copy link
Owner

Fixed now in v9.10.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants