projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf76437
)
Disallow ":" as part of a media slug
author
Sebastian Spaeth
<Sebastian@SSpaeth.de>
Wed, 9 Jan 2013 11:36:26 +0000
(12:36 +0100)
committer
Sebastian Spaeth
<Sebastian@SSpaeth.de>
Tue, 15 Jan 2013 19:08:21 +0000
(20:08 +0100)
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>
mediagoblin/tools/url.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tools/url.py
b/mediagoblin/tools/url.py
index 8604ad5f377a1113f58bf90a41946c51265877cd..d9179f9e2eab18a1f168160df890402d29e99d34 100644
(file)
--- a/
mediagoblin/tools/url.py
+++ b/
mediagoblin/tools/url.py
@@
-25,7
+25,7
@@
except ImportError:
USING_TRANSLITCODEC = False
-_punct_re = re.compile(r'[\t !"#$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+')
+_punct_re = re.compile(r'[\t !"#
:
$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+')
def slugify(text, delim=u'-'):