fixed issue with signoff detection
This commit is contained in:
parent
5d978102c3
commit
f75f0bfe83
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue