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

fix: do not replace jgit in clone url (regex issue) #4433

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

pstreef
Copy link
Contributor

@pstreef pstreef commented Aug 21, 2024

the .replaceFirst(".git$", "") is supposed to strip off .git at the end of a clone url, but in the following clone url https://github.com/openrewrite/jgit it also matches the regex because . is not escaped

@pstreef pstreef self-assigned this Aug 21, 2024
@pstreef pstreef requested a review from timtebeek August 21, 2024 08:50
@timtebeek timtebeek added the bug Something isn't working label Aug 21, 2024
@timtebeek timtebeek merged commit d6baf5b into main Aug 21, 2024
2 checks passed
@timtebeek timtebeek deleted the fix/do-not-replace-jgit-in-clone-url branch August 21, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants