diff --git a/dict.go b/dict.go index 74bce24..0c141b6 100644 --- a/dict.go +++ b/dict.go @@ -42,17 +42,19 @@ func main() { if strings.HasPrefix(line, VAR1) { line = strings.TrimPrefix(line, VAR1) line = strings.TrimSuffix(line, SUFF) - left = strings.Split(line, ",") + left = strings.Split(line, `","`) } else if strings.HasPrefix(line, VAR2) { line = strings.TrimPrefix(line, VAR2) line = strings.TrimSuffix(line, SUFF) - right = strings.Split(line, ",") + right = strings.Split(line, `","`) break } } if len(left) != len(right) { println("error: arrays of different length") + fmt.Println(strings.Join(left, "\n"), len(left)) + fmt.Println(strings.Join(right, "\n"), len(right)) return } @@ -69,8 +71,8 @@ func main() { } for i, _ := range right { - a := strings.Trim(right[i], `"`) - b := strings.Trim(left[i], `"`) + a := strings.Trim(right[i], `„"`) + b := strings.Trim(left[i], `„"`) if a == "" { continue }