cfinke / Typo.js

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

Case sensitivity for proper nouns #8

Closed dbolton closed 13 years ago

dbolton commented 13 years ago
var dictionary = new Typo("en_US", affData, dicData);
var is_spelled_correctly = dictionary.check("Alex") //returns true (as expected)
var is_spelled_correctly = dictionary.check("alex") //should be false but returns true

When the words in the dictionary have uppercase characters, they should be case sensitive when checking against the user text.

cfinke commented 13 years ago

Fixed in commit 3f55c6499342e9d77eec6ba9dbd8223ab46f28be.