twitter / twitter-cldr-rb

Ruby implementation of the ICU (International Components for Unicode) that uses the Common Locale Data Repository to format dates, plurals, and more.
Apache License 2.0
672 stars 93 forks source link

Fix bug in the CJK break engine causing an int to be compared to nil #261

Closed camertron closed 2 years ago

camertron commented 2 years ago

I'm really surprised our tests didn't catch this. The code effectively reads past the end of an array because it uses the wrong counter variable as an index 🤦

Fixes #260