9d4ec508 by astaxie

parse for github.com replace the . to _

1 parent 8b747f54
...@@ -53,7 +53,8 @@ func init() { ...@@ -53,7 +53,8 @@ func init() {
53 } 53 }
54 54
55 func parserPkg(pkgRealpath, pkgpath string) error { 55 func parserPkg(pkgRealpath, pkgpath string) error {
56 commentFilename = strings.Replace(pkgpath, "/", "_", -1) + "_" + commentFilename 56 rep := strings.NewReplacer("/", "_", ".", "_")
57 commentFilename = rep.Replace(pkgpath) + "_" + commentFilename
57 if !compareFile(pkgRealpath) { 58 if !compareFile(pkgRealpath) {
58 Info(pkgRealpath + " don't has updated") 59 Info(pkgRealpath + " don't has updated")
59 return nil 60 return nil
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!