mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-17 21:25:35 +00:00
Fixed lint errors
This commit is contained in:
parent
88eea89bb5
commit
9fe8489bfe
@ -10,5 +10,5 @@ def slugify(value):
|
|||||||
underscores) and converts spaces to hyphens. Also strips leading and
|
underscores) and converts spaces to hyphens. Also strips leading and
|
||||||
trailing whitespace.
|
trailing whitespace.
|
||||||
"""
|
"""
|
||||||
value = re.sub('[^\w\s-]', '', value).strip()
|
value = re.sub(r'[^\w\s-]', '', value).strip()
|
||||||
return re.sub('[-\s]+', '-', value)
|
return re.sub(r'[-\s]+', '-', value)
|
||||||
|
Loading…
Reference in New Issue
Block a user