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

Handle windows BUNDLED WITH Gemfile.lock #898

Merged
merged 4 commits into from
Sep 12, 2019

Conversation

schneems
Copy link
Contributor

@schneems schneems commented Jul 1, 2019

Windows uses carriage return and newline which prevents the $ regex from properly matching as currently placed. Since we're already supporting \r\n detection, we can remove the $` from the regex.

Windows uses carriage return and newline which prevents the `$` regex from properly matching as currently placed.
By opening the file in "text" mode i.e. `rt` the issue is avoided.
@schneems schneems force-pushed the schneems/fix-gemfile-lock-regex branch from c035fff to fa35a10 Compare July 1, 2019 19:16
Copy link

@jmorrell jmorrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better living through Regex ✨

@schneems schneems merged commit 0ee56c8 into master Sep 12, 2019
@schneems schneems deleted the schneems/fix-gemfile-lock-regex branch September 12, 2019 17:08
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