|
|
|
@ -95,19 +95,6 @@ func FixApostrophes(text string) string {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// if string(text[i]) == "'" &&
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
if string(text[i]) == "'" && apostrophe_pair && i > len(text)-1 { |
|
|
|
|
fmt.Println("found first apostrophe") |
|
|
|
|
text = strings.TrimSuffix(text[i:i+2], " ") |
|
|
|
|
apostrophe_pair = false |
|
|
|
|
} |
|
|
|
|
if string(text[i]) == "'" && !apostrophe_pair { |
|
|
|
|
fmt.Println("found second apostrophe") |
|
|
|
|
text = strings.TrimPrefix(text[i-1:i+1], " ") |
|
|
|
|
apostrophe_pair = true |
|
|
|
|
}*/ |
|
|
|
|
return text |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|