Awesome package, thanks for sharing. Could you add a method that supports any custom regex expression? It could be useful to support niche related validations.
Thanks
Try matches(string, regexPattern):
matches(string, regexPattern)
> validator.matches('foo', /foo/i) true
Most helpful comment
Try
matches(string, regexPattern):