Browse Source

final - commented section removed

master
kauri 3 years ago
parent
commit
dbbe07ce2a
  1. 13
      main.go

13
main.go

@ -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
}

Loading…
Cancel
Save