From 6396d2f92201f3e7b19a685ee4490118c2db5b55 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 18 May 2017 18:14:08 +0200 Subject: [PATCH] Do not use short words for typochecks --- src/pretix/static/pretixpresale/js/ui/typocheck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/static/pretixpresale/js/ui/typocheck.js b/src/pretix/static/pretixpresale/js/ui/typocheck.js index 913e184cf8..4a3533be50 100644 --- a/src/pretix/static/pretixpresale/js/ui/typocheck.js +++ b/src/pretix/static/pretixpresale/js/ui/typocheck.js @@ -12,7 +12,7 @@ function typocheck() { $sources.each(function () { $.each($(this).val().toLowerCase().replace('-', '').split(' '), function (i, w) { - if (w) { + if (w && w.length > 5) { words.push(w); } });