lx-valid
lx-valid copied to clipboard
Some patterns not working
Not sure where the pattern is being lost, but with:
pattern: /foo/
I'm getting
TypeError: undefined is not a function at node_modules/lx-valid/lib/revalidator.js:518:34
which is the pattern.test() line. It seems as though the pattern is being clobbered into a plain object somewhere up the chain.
but with a string:
pattern: "foo"
it's properly working. Any ideas? This didn't seem to happen until I updated on npm and supplied a much more complex schema.
Investigating...
Hi @braco ,
can you please post your schema and your data. Didn't find any error yet.
Will come back to this, thanks for looking