From 3f7e91e6a40edc57596d4d6aa18fb7be1e0cbabb Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 26 May 2014 10:15:56 +0800 Subject: [PATCH] beego:fix *.* router bug --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 46453b11..b2c43254 100644 --- a/router.go +++ b/router.go @@ -344,7 +344,7 @@ func (p *ControllerRegistor) splitRoute(pattern string) (paramnums int, params m expr := "(.*)" if part == "*.*" { params[j] = ":path" - parts[i] = "([^.]+).([^.]+)" + parts[i] = `([^.]+)\.([^.]+)` j++ params[j] = ":ext" j++