Skip to content

Commit d4328f6

Browse files
committed
use non-unicode scanner.Split for English, Latin and Esperanto
1 parent 27d420a commit d4328f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example-golang/app/extract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func extract(src, dst, lang string, sortResults bool, sem <-chan empty, wg *sync
148148

149149
func collectWords(r io.Reader, lang string, sizeHint int) ([]string, error) {
150150
scanner := bufio.NewScanner(r)
151-
ascii := []string{"en", "la"}
151+
ascii := []string{"en", "la", "eo"} // English, Latin, Esperanto
152152
if stringInSlice(lang, ascii) {
153153
scanner.Split(splitWords)
154154
} else {

0 commit comments

Comments
 (0)