diff --git a/autoapi/utils.py b/autoapi/utils.py index 5fcf0a7..a643712 100644 --- a/autoapi/utils.py +++ b/autoapi/utils.py @@ -10,5 +10,5 @@ def slugify(value): underscores) and converts spaces to hyphens. Also strips leading and trailing whitespace. """ - value = re.sub('[^\w\s-]', '', value).strip() - return re.sub('[-\s]+', '-', value) + value = re.sub(r'[^\w\s-]', '', value).strip() + return re.sub(r'[-\s]+', '-', value)