Skip to content

Commit

Permalink
fix repo regex
Browse files Browse the repository at this point in the history
  • Loading branch information
faceair committed Aug 6, 2018
1 parent afd37ee commit b4b54a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

var urlRegex = regexp.MustCompile(`([A-Za-z0-9_.-]+(/[A-Za-z0-9_.-]+)+?)(/info/refs|/git-upload-pack|\?go-get=1)`)
var repoRegex = regexp.MustCompile(`<meta name="go-import" content="(.+?) git (.+)?">`)
var repoRegex = regexp.MustCompile(`content="(.+?) git (.+)?"`)

// NewServer create a Server instance
// The gopath should be a valid folder and will store git repositories later
Expand Down

0 comments on commit b4b54a3

Please sign in to comment.