mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-09 10:23:47 -05:00
Merge pull request #55 from victal/freitass
Fix overduedate regex breaking in November
This commit is contained in:
@@ -44,7 +44,7 @@ def _month_regex_before(year, month):
|
|||||||
def _day_regex_before(year, month, day):
|
def _day_regex_before(year, month, day):
|
||||||
if day == '01':
|
if day == '01':
|
||||||
return None
|
return None
|
||||||
last_month_day = str((date(int(year), (int(month) + 1) % 12, 1) + - date.resolution).day)
|
last_month_day = str((date(int(year), int(month) % 12 + 1, 1) + - date.resolution).day)
|
||||||
last_digit1, last_digit2 = last_month_day
|
last_digit1, last_digit2 = last_month_day
|
||||||
|
|
||||||
digit1, digit2 = day
|
digit1, digit2 = day
|
||||||
|
|||||||
Reference in New Issue
Block a user