Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9aa94ff5 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Expressed regexp as raw string instead of using \ (SyntaxWarning)

parent 8df08eaf
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment