Commits

Joseph Poirier committed 29e2fea

API change for strings.Split to strings.SplitN

  • Participants
  • Parent commits d045705

Comments (0)

Files changed (1)

 //		path = strings.Replace(path, `\`, `\\`, -1)
 		pathext := os.Getenv("PATHEXT")
 		if pathext != "" {
-			exts = strings.Split(strings.ToLower(pathext), sepChar, -1)
+			exts = strings.SplitN(strings.ToLower(pathext), sepChar, -1)
 			for i, e := range exts {
 				if e == "" || e[0] != '.' {
 					exts[i] = "." + e
 //			paths[i] = `"` + p + `"`
 //		}
 	}
-	paths = strings.Split(path, sepChar, -1)
+	paths = strings.SplitN(path, sepChar, -1)
 	process(files, paths, exts)
 }