We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example I haven't found a way to make this work.
c.Check("one\ntwo", Matches, ".*two.*")
Because the matches must be a string, and that string is wrapped with ^ and $ we can't add our own flags either.
^
$
A possible quick fix is to check if the pattern is a regexp.Regexp, in which case don't compile the pattern ourselves.
The text was updated successfully, but these errors were encountered:
If you prefix your string with (?m), it should work.
(?m)
Sorry, something went wrong.
No branches or pull requests
For example I haven't found a way to make this work.
Because the matches must be a string, and that string is wrapped with
^
and$
we can't add our own flags either.A possible quick fix is to check if the pattern is a regexp.Regexp, in which case don't compile the pattern ourselves.
The text was updated successfully, but these errors were encountered: