From 82f2e7d7df357346e808aac937b911af5e98136e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 23 Feb 2023 21:35:37 +0100 Subject: [PATCH] Trim everything after special character for titles --- papis-marvin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papis-marvin b/papis-marvin index e9b248a..1ddb00c 100755 --- a/papis-marvin +++ b/papis-marvin @@ -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: