-
Notifications
You must be signed in to change notification settings - Fork 342
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
Allow orgs with leading numbers in name in GitRemote #4727
Conversation
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.
Thanks for the quick turnaround
You're welcome! You did just miss the release we did today, but I imagine you're comfortable running snapshot versions if needed. All the best! |
@@ -279,7 +279,7 @@ private String repositoryPath(RemoteServerMatch match, URI normalizedUri) { | |||
.replaceFirst("^/", ""); | |||
} | |||
|
|||
private static final Pattern PORT_PATTERN = Pattern.compile(":\\d+"); | |||
private static final Pattern PORT_PATTERN = Pattern.compile(":\\d+[^-\\w]"); // Allow orgs with numbers in name |
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.
github at least supports org names with only numbers.
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.
Guess those will still get the exception thrown then, but at least this works for partial numeric org names. Welcome suggestions for a complete fix!
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.
Guess those will still get the exception thrown then, but at least this works for partial numeric org names. Welcome suggestions for a complete fix!
I had opened this previously #4651
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.
Ah, I had no idea. Approved just now & sorry about the conflict. Do let me know if there's ever something open for too long.
What's your motivation?
Anyone you would like to review specifically?
@tylervangorder-8451