From 9d4ec508bb8658e0fdf89de39d0ee89b895658b7 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 4 Nov 2014 10:19:30 +0800 Subject: [PATCH] parse for github.com replace the . to _ --- parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser.go b/parser.go index adb176f1..0acdc8f7 100644 --- a/parser.go +++ b/parser.go @@ -53,7 +53,8 @@ func init() { } func parserPkg(pkgRealpath, pkgpath string) error { - commentFilename = strings.Replace(pkgpath, "/", "_", -1) + "_" + commentFilename + rep := strings.NewReplacer("/", "_", ".", "_") + commentFilename = rep.Replace(pkgpath) + "_" + commentFilename if !compareFile(pkgRealpath) { Info(pkgRealpath + " don't has updated") return nil