fixed issue with signoff detection

This commit is contained in:
Daniel Fichtinger 2025-06-27 21:05:08 -04:00
parent 5d978102c3
commit f75f0bfe83
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ def main() -> None:
if not signoff_cache and 1 <= n <= 5 and line[-1] == ",": if not signoff_cache and 1 <= n <= 5 and line[-1] == ",":
return True return True
# second potential line # 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: for w in words:
if not w[0].isupper(): if not w[0].isupper():
return False return False

View file

@ -1,6 +1,6 @@
[project] [project]
name = "mailfmt" name = "mailfmt"
version = "1.0.1" version = "1.0.2"
description = "Heuristic plain text email formatter." description = "Heuristic plain text email formatter."
readme = "README.md" readme = "README.md"
authors = [ authors = [