From b51967dc9b2ee6bbb5e84eb173728b7086a11d98 Mon Sep 17 00:00:00 2001 From: esefxdz Date: Thu, 23 Jul 2026 23:45:04 +0300 Subject: [PATCH] fix timestamp_friends: ignore ordinal suffixes (st/nd/rd/th) in bare-hour regex --- cogs/tz_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/tz_data.py b/cogs/tz_data.py index 607aa69..185f1d4 100644 --- a/cogs/tz_data.py +++ b/cogs/tz_data.py @@ -27,7 +27,7 @@ def has_ampm(text: str) -> bool: # in "3:00") and NOT followed by colon (excludes "3:00" hours). Captures # an optional am/pm suffix separately. _HOUR_RE = re.compile( - r"(?