From a0f46587a1f94d5eea9089072f509a61abbe6893 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Thu, 9 Jul 2020 17:15:32 +0100 Subject: [PATCH] Remove unnecessary escapes in regex --- xfel_calibrate/calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfel_calibrate/calibrate.py b/xfel_calibrate/calibrate.py index 99daadfd8..9ca0315a2 100755 --- a/xfel_calibrate/calibrate.py +++ b/xfel_calibrate/calibrate.py @@ -149,7 +149,7 @@ def extract_title_author_version(nb): first_md = first_markdown_cell(nb) source = first_md["source"] - title = re.findall(r'\#+\s*(.*)\s*\#+', source) + title = re.findall(r'#+\s*(.*)\s*#+', source) author = re.findall( r'author[\s]*[:][\s]*(.*?)\s*(?:[,?]|version)', source, flags=re.IGNORECASE) -- GitLab