diff --git a/core/interfaces/branch.py b/core/interfaces/branch.py index 892c069f7..b4440b787 100644 --- a/core/interfaces/branch.py +++ b/core/interfaces/branch.py @@ -246,7 +246,7 @@ def get_date(branch): d = branch.relative_committerdate if d == "12 months ago": d = "1 year ago" - return re.sub(r", \d+ months ago", " ago", d) + return re.sub(r", \d+ months? ago", " ago", d) return branch.human_committerdate date = get_date(branch)