From 9aa94ff53296a571b563a7c4880b6cb74b3b390c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Fri, 27 Sep 2024 19:27:41 +0200 Subject: [PATCH] Expressed regexp as raw string instead of using \ (SyntaxWarning) --- notebook/params.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebook/params.py b/notebook/params.py index 06bd093..5042d13 100644 --- a/notebook/params.py +++ b/notebook/params.py @@ -48,7 +48,8 @@ def set_html_link_labels( text ): # mkdn=True: markdown, otherwise HTML def set_link_labels_gen( text, mkdn ): - regExp = '^(.*?)(\[?\[?[0-9]{8}(a|b)?-NOOR\]?\]?)(.*)$' + #regExp = '^(.*?)(\[?\[?[0-9]{8}(a|b)?-NOOR\]?\]?)(.*)$' + regExp = r"^(.*?)(\[?\[?[0-9]{8}(a|b)?-NOOR\]?\]?)(.*)$" lookForLabels = True; newText = '' while lookForLabels: -- GitLab