diff options
Diffstat (limited to 'dict.go')
-rw-r--r-- | dict.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -5,6 +5,7 @@ import ( "fmt" "net/http" "os" + "regexp" "strings" ) @@ -70,9 +71,12 @@ func main() { ml = 40 } + re := regexp.MustCompile(`\('"„)`) for i, _ := range right { a := strings.Trim(right[i], `„"`) b := strings.Trim(left[i], `„"`) + a = re.ReplaceAllString(a, `$1`) + b = re.ReplaceAllString(b, `$1`) if a == "" { continue } |