.matches() doesn't work
See original GitHub issueI tried using: req.assert('field', 'error').matches(/myregex/);
Is this the right way to call the method ‘matches’? Because chriso/validator.js uses matches(str, pattern [, modifiers])
.
Issue Analytics
- State:
- Created 9 years ago
- Comments:6
Top Results From Across the Web
java - Regex doesn't work in String.matches() - Stack Overflow
Welcome to Java's misnamed .matches() method... It tries and matches ALL the input. Unfortunately, other languages have followed suit :(.
Read more >Excel MATCH Function Error Troubleshooting Examples
Before we start troubleshooting the MATCH function, here's a short video that shows how the function works. It has four MATCH examples, ...
Read more >Why isn't the Java matches method working? (Java pattern ...
The matches() method attempts to match the entire input ... The find method does not require your pattern to match the entire String....
Read more >How to correct a #N/A error in INDEX/MATCH functions
Problem: There is no data to match. When the MATCH function does not find the lookup value in the lookup array, it returns...
Read more >How to Fix Excel MATCH Function Errors - YouTube
Sometimes the Excel MATCH function returns an error, even if the lookup value is in the lookup list.This video shows two common causes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This doesn’t work:
This works:
.matches() is not working.
*EDIT: It looks like you MUST set the “modifiers” param in this function for it to work and remove it from your pattern param Ex: (this is in my controller for a data type called ‘viewers’)