From 02ecb18effddc15f2f90652f8778f8bb32bddcf4 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 7 Jun 2014 02:39:17 +0100 Subject: [PATCH] Use day numbers instead of text for language independent day name fuzzyness. --- gui/slick/js/fuzzyMoment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/slick/js/fuzzyMoment.js b/gui/slick/js/fuzzyMoment.js index 0b24597b..d80a6efb 100644 --- a/gui/slick/js/fuzzyMoment.js +++ b/gui/slick/js/fuzzyMoment.js @@ -113,10 +113,10 @@ result = (0 == week ? airdatetime.calendar() : ''); if (/\bOn\b/i.test(result)) { - var fuzzer = false, weekday = today.format('dd'); - if (/we/i.test(weekday)) + var fuzzer = false, weekday = today.day(); + if (3 == weekday) fuzzer = (5 <= day); - else if (/(?:th|fr)/i.test(weekday)) + else if (4 == weekday || 5 == weekday) fuzzer = (4 <= day); else fuzzer = (6 == day);