Skip to content

Conversation

@tonysamperi
Copy link
Contributor

Description

Forcing pattern to be string, to cope with lib validator which doesn't reset the RegExp instance
Fixes #1127
Workaround of a behaviour which should be fixed in validator.js

To-do list

  • I have added tests for what I changed.
  • This pull request is ready to merge.

@fedeci
Copy link
Member

fedeci commented Jun 15, 2022

Merging and publishing this tomorrow morning! Sorry again for the delay!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8c4059a on tonysamperi:bugfix/regex-instance into 82e4d84 on express-validator:master.

@fedeci fedeci merged commit 6b2edda into express-validator:master Jun 19, 2022
@tonysamperi tonysamperi deleted the bugfix/regex-instance branch June 19, 2022 14:02
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

Successfully merging this pull request may close these issues.

.matches failing when passing regex instead of pattern

3 participants