From 43695a74bc6bbe3641096e7cf2893c783dae494b Mon Sep 17 00:00:00 2001 From: Howl Date: Sun, 15 Nov 2015 13:55:57 +0100 Subject: [PATCH] Change regex for /compare/ --- cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web.go b/cmd/web.go index 950c3d48c..e391b68ef 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -536,7 +536,7 @@ func runWeb(ctx *cli.Context) { m.Get("/forks", repo.Forks) }, middleware.RepoRef()) - m.Get("/compare/:before([a-z0-9]{40})...:after([a-z0-9]{40})", repo.CompareDiff) + m.Get("/compare/:before(.*[^.])...:after(.*[^.])", repo.CompareDiff) }, ignSignIn, middleware.RepoAssignment(true)) m.Group("/:username", func() {