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

Some patterns not working #1

Open
braco opened this issue Jan 15, 2015 · 3 comments
Open

Some patterns not working #1

braco opened this issue Jan 15, 2015 · 3 comments
Assignees

Comments

@braco
Copy link

braco commented Jan 15, 2015

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.

@4kochi 4kochi self-assigned this Jan 16, 2015
@4kochi
Copy link
Collaborator

4kochi commented Jan 16, 2015

Investigating...

@4kochi
Copy link
Collaborator

4kochi commented Jan 16, 2015

Hi @braco ,

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

@braco
Copy link
Author

braco commented Jan 16, 2015

Will come back to this, thanks for looking

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

No branches or pull requests

2 participants