Skip to content
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

[Backport maintenance/2.17.x] Ignore quantifiers when splitting comma-separated regexes (#8898) #8901

Conversation

jacobtylerwalls
Copy link
Member

Backport #8898 from d28def9.

…#8898)

Do not split on commas if they are between braces, since that indicates
a quantifier. Also added a protection for slow implementations since
existing workarounds may result in long strings of chained regular
expressions.

Adjust existing test for invalid regex to be truly invalid

Co-authored-by: lihu <lihu.ben-ezri-ravin@portalinstruments.com>
(cherry picked from commit d28def9)
@jacobtylerwalls jacobtylerwalls added this to the 2.17.6 milestone Jul 30, 2023
@codecov
Copy link

codecov bot commented Jul 30, 2023

Codecov Report

Merging #8901 (d69ae76) into maintenance/2.17.x (fe161df) will decrease coverage by 0.01%.
The diff coverage is 95.00%.

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                   @@
##           maintenance/2.17.x    #8901      +/-   ##
======================================================
- Coverage               95.57%   95.57%   -0.01%     
======================================================
  Files                     178      178              
  Lines                   18844    18862      +18     
======================================================
+ Hits                    18010    18027      +17     
- Misses                    834      835       +1     
Files Changed Coverage Δ
pylint/utils/__init__.py 100.00% <ø> (ø)
pylint/utils/utils.py 87.69% <94.73%> (+0.68%) ⬆️
pylint/config/argument.py 100.00% <100.00%> (ø)

@jacobtylerwalls jacobtylerwalls merged commit c72a149 into pylint-dev:maintenance/2.17.x Jul 30, 2023
21 of 22 checks passed
@jacobtylerwalls jacobtylerwalls deleted the backport-8898-to-maintenance/2.17.x branch July 30, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants