MichalLytek / class-transformer-validator

A simple plugin for class-transformer and class-validator which combines them in a nice and programmer-friendly API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IsNumberString returns false for none integers

AmirSasson opened this issue · comments

such as "-0.8" a valid numeric string, i get an error.
seems like the regex used to validate that missing a dot

This is the regex:
https://github.com/chriso/validator.js/blob/master/src/lib/isNumeric.js

If you think it's buggy, create an issue or PR on validator.js repository.

submitted a PR to validator JS