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
add warning for regular expression with [/\]
#2043
Comments
Can you open up the issue a little more, please? I'd like to fix this issue but I could not understand the problem exactly. |
right now, one may write something like: files: ^somedir[/\].*\.py$
# or
exclude: ^somedir[\/]otherdir[\/].*\.py$ expecting that they need to match both posix paths there's a similar regular expression warning for doing something like |
Add warning for regular expression with [\/] (#2043)
via #2053 |
pre-commit normalizes slashes to forward slashes since 2.5.0 (and further back to 1.19.0 for per-hook configuration)
there's already a similar warning for
/*
so this should be a fairly beginner-friendly changesetThe text was updated successfully, but these errors were encountered: