forked from CGM_Public/pretix_original
Fixed incorrect typo-check suggestion
Thanks @freakboy3742 for reporting see https://twitter.com/freakboy3742/status/936764146074316801
This commit is contained in:
@@ -11,9 +11,10 @@ function typocheck() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sources.each(function () {
|
$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) {
|
if (w && w.length > 5) {
|
||||||
words.push(w);
|
words.push(w);
|
||||||
|
words.push(w.replace('-', ''));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user