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
More on warnings for regular expressions #2151
Labels
Comments
sanjioh
changed the title
More warnings for regular expressions
More on warnings for regular expressions
Dec 2, 2021
tonyrla
added a commit
to tonyrla/pre-commit
that referenced
this issue
Dec 4, 2021
…re-commit#2151 test: Testcases for said regular expression refactor: for-loop for regex warnings instead of multiple if-clauses
tonyrla
added a commit
to tonyrla/pre-commit
that referenced
this issue
Dec 4, 2021
test: Testcases for said regular expression refactor: for-loop for regex warnings instead of multiple if-clauses resolves pre-commit#2151
tonyrla
added a commit
to tonyrla/pre-commit
that referenced
this issue
Dec 4, 2021
test: Test case parameters for said regular expression refactor: For-loop for regex warnings instead of multiple if statements resolves pre-commit#2151
estebanz01
pushed a commit
to avlos/pre-commit
that referenced
this issue
Dec 27, 2021
test: Test case parameters for said regular expression refactor: For-loop for regex warnings instead of multiple if statements resolves pre-commit#2151
estebanz01
pushed a commit
to avlos/pre-commit
that referenced
this issue
Dec 27, 2021
test: Test case parameters for said regular expression refactor: For-loop for regex warnings instead of multiple if statements resolves pre-commit#2151
saravankrish
pushed a commit
to saravankrish/pre-commit
that referenced
this issue
Jul 7, 2023
test: Test case parameters for said regular expression refactor: For-loop for regex warnings instead of multiple if statements resolves pre-commit#2151
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
As briefly discussed here:
#2053 (comment)
pre-commit
could detect the[\\/]
regular expression as well.As of now (pre-commit 2.16.0), such a regex does not trigger any warnings.
Besides, IIRC, the regex
[\/]
, currently detected, matches the single character/
(not/
and\
), so I think it shouldn't be mentioned as an erroneous way for matching both kinds of slashes.(see https://regex101.com/r/FRPiLZ/1)
Thanks!
The text was updated successfully, but these errors were encountered: