From f75f0bfe837745d97cd67c3e68671d5c824254b7 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 27 Jun 2025 21:05:08 -0400 Subject: [PATCH] fixed issue with signoff detection --- mailfmt.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mailfmt.py b/mailfmt.py index dba3722..fb34d8a 100755 --- a/mailfmt.py +++ b/mailfmt.py @@ -75,7 +75,7 @@ def main() -> None: if not signoff_cache and 1 <= n <= 5 and line[-1] == ",": return True # second potential line - elif signoff_cache and 1 <= n <= 5 and line[-1].isalpha(): + elif signoff_cache and 1 <= n <= 5: for w in words: if not w[0].isupper(): return False diff --git a/pyproject.toml b/pyproject.toml index ee637a7..fcf662c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mailfmt" -version = "1.0.1" +version = "1.0.2" description = "Heuristic plain text email formatter." readme = "README.md" authors = [