-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations
Description
Summary
Regex repetitions are partially removed by this rule, example:
- _re_date = r'(?P<day>\d{{1,2}})(?P<month>{0})'.format('|'.join(_months))
+ _re_date = r'(?P<day>\d{{,2}})(?P<month>{})'.format('|'.join(_months))1is removed in the regex expression:\d{{1,2}}formathas only one parameter, removing any other but{0}in this case is wrong anyway
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations