cfinke / Typo.js

A client-side JavaScript spellchecker that uses Hunspell-style dictionaries.
Other
501 stars 110 forks source link

Split correctly across newlines in windows #72

Closed SLKnutson closed 4 years ago

SLKnutson commented 4 years ago

Previously, the line splitting would leave trailing \r characters when the line endings. This was causing us to have different suggestions on windows vs mac. The specific issue was that on windows the REP entries in the affix file are not used unless they contain exactly 3 entries when split by whitespace, but the extra \r was giving us 4 entries.