We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 196ec6b commit 05fece3Copy full SHA for 05fece3
1 file changed
src/interactive_sort/main.py
@@ -54,7 +54,9 @@ def month_sort_key(self, item: str) -> int:
54
else:
55
return 0
56
57
- match: re.Match[str] | None = re.match(r"^(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)\s*", text_to_check, re.IGNORECASE)
+ match: re.Match[str] | None = re.match(
58
+ r"^(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)\s*", text_to_check, re.IGNORECASE
59
+ )
60
if match:
61
return self.month_map.get(match.group(1).upper(), 0) # 0 for unknown
62
return 0 # Treat lines without a month at the beginning as "unknown"
0 commit comments