From 763382e4ce0a0e512395962f5a2dfeff8f9996c9 Mon Sep 17 00:00:00 2001 From: astaxie Date: Mon, 23 Jun 2014 23:10:17 +0800 Subject: [PATCH] update the filter for URL --- g_docs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g_docs.go b/g_docs.go index f3b6be3..3ed2cf3 100644 --- a/g_docs.go +++ b/g_docs.go @@ -77,12 +77,13 @@ func urlReplace(src string) string { if len(p) > 0 { if p[0] == ':' { pt[i] = "{" + p[1:] + "}" + } else if p[0] == "?" && p[1] == ":" { + pt[i] = "{" + p[2:] + "}" } } } return strings.Join(pt, "/") } - ` const (