lx-valid icon indicating copy to clipboard operation
lx-valid copied to clipboard

Some patterns not working

Open braco opened this issue 10 years ago • 3 comments

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.

braco avatar Jan 15 '15 23:01 braco

Investigating...

4kochi avatar Jan 16 '15 06:01 4kochi

Hi @braco ,

can you please post your schema and your data. Didn't find any error yet.

4kochi avatar Jan 16 '15 07:01 4kochi

Will come back to this, thanks for looking

braco avatar Jan 16 '15 17:01 braco