aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/utils.py')
-rw-r--r--ihatemoney/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ihatemoney/utils.py b/ihatemoney/utils.py
index d03e91b..19340df 100644
--- a/ihatemoney/utils.py
+++ b/ihatemoney/utils.py
@@ -23,8 +23,8 @@ def slugify(value):
value = unicodedata.normalize('NFKD', value)
if six.PY2:
value = value.encode('ascii', 'ignore')
- value = six.text_type(re.sub('[^\w\s-]', '', value).strip().lower())
- return re.sub('[-\s]+', '-', value)
+ value = six.text_type(re.sub(r'[^\w\s-]', '', value).strip().lower())
+ return re.sub(r'[-\s]+', '-', value)
class Redirect303(HTTPException, RoutingException):