-
Notifications
You must be signed in to change notification settings - Fork 463
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
Provides narrower regex for conflict marker detect #495
Provides narrower regex for conflict marker detect #495
Conversation
Can you please break the regexp over multiple lines and add inline comments to it? |
lib/xcodeproj/plist.rb
Outdated
[\w\W]* # Anything | ||
^={7}(?!=) # Exactly 7 equality symbols at the beginning of the line | ||
[\w\W]* # Anything | ||
^>{7}(?!>) # Exaxtly 7 right arrows at the beginning of the line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, typo exactly
@segiddins I'm not sure why the CI is failing. Reading the output it seems to be a setup issue, but I'm new to ruby/gem/rake/allofit. Is it something I need to address? |
@allenhumphreys can you try rebasing? |
Improves readability of conflict regex, adds test cases Addresses style guide conformance Fixes typo
@dnkoutso Squashed and rebase on master. ✅ |
@allenhumphreys as the barista says, need to add a changelog entry ;) |
👍 Thanks! |
Looks like rebase did it. |
@segiddins @dnkoutso It's been a pleasure learning and participating, hope to contribute more in the future! |
Apparently, in the changelog, the 2 trailing spaces at the end of the first line must mean something in markdown that I was unfamiliar with. So, that's my bad. |
It just forces GitHub to render the next line of markdown on a new line, no big deal, we can fix it up during release |
I recently ran into a situation when parsing the acknowledgements file within my Podfile. One of the pods (libidn v1.33) has the following in their license:
The regex currently used in
file_in_conflict
is detecting this section separator as a merge conflict, thusPlist.read_from_path
is refusing to open the file.I'm proposing a new regex for matching the entire conflict marker sequence which is:
A trivial script for testing the regex