checking for - and converting - backslashes

This commit is contained in:
Eric Ritchey
2014-03-13 14:32:10 -07:00
parent f2491e83b0
commit 7b4729ddc8

View File

@@ -145,7 +145,7 @@ def sanitize_name(name,what="branch"):
return name
n=name
p=re.compile('([[ ~^:?*]|\.\.)')
p=re.compile('([[ ~^:?\\\\*]|\.\.)')
n=p.sub('_', n)
if n[-1] in ('/', '.'): n=n[:-1]+'_'
n='/'.join(map(dot,n.split('/')))