Disallow ":" as part of a media slug
We might want to use "id:IDN" as a special case slug to point to a media's id. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
cf764377df
commit
7525cdf9eb
@ -25,7 +25,7 @@ except ImportError:
|
|||||||
USING_TRANSLITCODEC = False
|
USING_TRANSLITCODEC = False
|
||||||
|
|
||||||
|
|
||||||
_punct_re = re.compile(r'[\t !"#$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+')
|
_punct_re = re.compile(r'[\t !"#:$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+')
|
||||||
|
|
||||||
|
|
||||||
def slugify(text, delim=u'-'):
|
def slugify(text, delim=u'-'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user