Merge pull request #23 from ritcheyer/master

checking for - and converting - backslashes

Thank you for your contribution!
This commit is contained in:
frej
2014-03-16 16:05:47 +01:00

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('/')))