parse for github.com replace the . to _

This commit is contained in:
astaxie 2014-11-04 10:19:30 +08:00
parent 8b747f54bc
commit 9d4ec508bb
1 changed files with 2 additions and 1 deletions

View File

@ -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