Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Improve code readability by explaining a validation regex #156

Merged
merged 1 commit into from
Aug 27, 2014

Conversation

scorphus
Copy link
Contributor

No description provided.

@@ -81,8 +81,16 @@ func requestedRepository() (repository.Repository, error) {

// Checks whether a command is a valid git command
// The following format is allowed:
// (git-[a-z-]+) '/?([\w-+@][\w-+.@]*/)?([\w-]+)\.git'
// (git-[a-z-]+) '/?([\w-+@][\w-+.@]*/)?([\w-]+)\.git'
Copy link
Contributor

Choose a reason for hiding this comment

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

why this "tab" before the regex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't look weird to me in in the comment block as it looks in the diff... But I'm removing it anyway.

andrewsmedina added a commit that referenced this pull request Aug 27, 2014
Improve code readability by explaining a validation regex
@andrewsmedina andrewsmedina merged commit 2b38b8a into tsuru:master Aug 27, 2014
@andrewsmedina
Copy link
Contributor

@scorphus thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants