Trim everything after special character for titles
This commit is contained in:
parent
a150259538
commit
82f2e7d7df
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue