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

[Finder] Fix GitIgnore parser when dealing with (sub)directories and take order of lines into account #37560

Merged
merged 1 commit into from Jul 31, 2020

Conversation

Jeroeny
Copy link
Contributor

@Jeroeny Jeroeny commented Jul 11, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #37424
License MIT

The new regex is made per positive .gitignore line. Which is a match group followed by a negative lookbehind with all the negations that were on lines after that line. This also fixes some other bugs that didn't match the .gitignore spec and two incorrect tests. I think it's likely that there are more edge cases this PR may not cover, but I haven't found them yet.

See the issue for more info.

fabpot
fabpot approved these changes Jul 31, 2020
Copy link
Member

@fabpot fabpot left a comment

Bug, so this is for 3.4

@fabpot
Copy link
Member

@fabpot fabpot commented Jul 31, 2020

Thank you @Jeroeny.

@fabpot fabpot merged commit bea4319 into symfony:4.4 Jul 31, 2020
2 of 5 checks passed
This was referenced Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants