Fixes #4102 Calendar: Shouldn't trigger on query for calendar.google.com (#4114)

master
lernae 2017-04-21 18:29:13 -04:00 committed by Zaahir Moolla
parent 1047f8a9e6
commit cc1753acab
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,10 @@ my $relative_dates_regex = relative_dates_regex();
handle remainder => sub {
my $query = $_;
# return if there is no remainder and query_lc is not 'calendar'
return if($query eq '' && $req->query_lc ne 'calendar');
my $date_object = DateTime->now;
my ($currentDay, $currentMonth, $currentYear) = ($date_object->day(), $date_object->month(), $date_object->year());
my $highlightDay = 0; # Initialized, but won't match, by default.

View File

@ -377,6 +377,8 @@ S M T W T F S November 2009
}
}
),
# Invalid input
'calendar.google.com' => undef,
);
# Special focus on relative dates, examining the "today" circle