Preliminary subdirectory support. refs #50
This commit is contained in:
parent
917cc5b967
commit
9108f82149
3 changed files with 14 additions and 9 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue