mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Mark RegEx string as raw
This commit is contained in:
parent
9a875fd476
commit
114c151501
1 changed files with 1 additions and 1 deletions
|
@ -2250,7 +2250,7 @@ class ModelsTestCase(IhatemoneyTestCase):
|
|||
|
||||
def em_surround(string, regex_escape=False):
|
||||
if regex_escape:
|
||||
return '<em class="font-italic">%s<\/em>' % string
|
||||
return r'<em class="font-italic">%s<\/em>' % string
|
||||
else:
|
||||
return '<em class="font-italic">%s</em>' % string
|
||||
|
||||
|
|
Loading…
Reference in a new issue