maybe speed up scanner#intSep

This commit is contained in:
sentriz
2019-06-11 14:45:33 +01:00
parent e5998dca02
commit 01ecda0b4e

View File

@@ -12,7 +12,7 @@ func intSep(in, sep string) int {
if in == "" {
return 0
}
start := strings.Split(in, sep)[0]
start := strings.SplitN(in, sep, 2)[0]
out, err := strconv.Atoi(start)
if err != nil {
return 0