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

View file

@ -145,7 +145,7 @@ def write_to_files(notes: Dict):
logger.info(f"Added {num_added} entries to it.") 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: def strip_string(title) -> str: