Skip to content

Some patterns not working #1

Description

@braco

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions