Preliminary subdirectory support. refs #50

This commit is contained in:
Chase Sterling 2015-12-08 21:38:09 -05:00
parent 917cc5b967
commit 9108f82149
3 changed files with 14 additions and 9 deletions

View file

@ -85,10 +85,10 @@ def to_canonical(s):
"""
Double space -> single dash
Double dash -> single dash
Remove all non alphanumeric and dash
Remove all non alphanumeric and dash except path separatos (/)
Limit to first 128 chars
"""
reserved_chars = "&$+,/:;=?@#"
reserved_chars = "&$+,:;=?@#"
unsafe_chars = "?<>[]{}|\^~%"
s = s.encode('utf8')