Trim everything after special character for titles

This commit is contained in:
Marty Oehme 2023-02-23 21:35:37 +01:00
parent a150259538
commit 82f2e7d7df
Signed by: Marty
GPG Key ID: EDBF2ED917B2EF6A
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ def write_to_files(notes: Dict):
logger.info(f"Added {num_added} entries to it.")
strip_pattern = re.compile(r"([^\s\w]|_)+")
strip_pattern = re.compile(r"([^\s\w]|_)+\w*")
def strip_string(title) -> str: