Compare commits
No commits in common. "5cb66d0bf13b7b66f1e6236f463cd3e6f50e31d0" and "377fde239e8604c874e59c1615a89b290e66c830" have entirely different histories.
5cb66d0bf1
...
377fde239e
2 changed files with 1 additions and 4 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
|
@ -13,9 +13,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install system dependencies
|
|
||||||
run: sudo apt-get update -q && sudo apt-get install -y libsqlcipher-dev
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ def _trim_to_letter_end(text: str) -> str:
|
||||||
candidate_first = (_profile.name.split()[0] if _profile else "").strip()
|
candidate_first = (_profile.name.split()[0] if _profile else "").strip()
|
||||||
pattern = (
|
pattern = (
|
||||||
r'(?:Warm regards|Sincerely|Best regards|Kind regards|Thank you)[,.]?\s*\n+\s*'
|
r'(?:Warm regards|Sincerely|Best regards|Kind regards|Thank you)[,.]?\s*\n+\s*'
|
||||||
+ (re.escape(candidate_first) if candidate_first else r'\w+(?:\s+\w+)?')
|
+ (re.escape(candidate_first) if candidate_first else r'\w+')
|
||||||
+ r'\b'
|
+ r'\b'
|
||||||
)
|
)
|
||||||
m = re.search(pattern, text, re.IGNORECASE)
|
m = re.search(pattern, text, re.IGNORECASE)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue