From 0f8cd31e0adbf7b02acf9bf3ed369964c65e7639 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 4 Dec 2017 15:40:06 +0100 Subject: [PATCH] Fixed incorrect typo-check suggestion Thanks @freakboy3742 for reporting see https://twitter.com/freakboy3742/status/936764146074316801 --- src/pretix/static/pretixpresale/js/ui/typocheck.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/ui/typocheck.js b/src/pretix/static/pretixpresale/js/ui/typocheck.js index 61a1a6955..cae70872b 100644 --- a/src/pretix/static/pretixpresale/js/ui/typocheck.js +++ b/src/pretix/static/pretixpresale/js/ui/typocheck.js @@ -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('-', '')); } }); });