Fixed incorrect typo-check suggestion

Thanks @freakboy3742 for reporting
see https://twitter.com/freakboy3742/status/936764146074316801
This commit is contained in:
Raphael Michel
2017-12-04 15:40:06 +01:00
parent c351a5cf72
commit 0f8cd31e0a

View File

@@ -11,9 +11,10 @@ function typocheck() {
}
$sources.each(function () {
$.each($(this).val().toLowerCase().replace('-', '').split(' '), function (i, w) {
$.each($(this).val().toLowerCase().split(' '), function (i, w) {
if (w && w.length > 5) {
words.push(w);
words.push(w.replace('-', ''));
}
});
});