mirror of
https://github.com/frej/fast-export.git
synced 2025-11-02 01:05:48 +01:00
checking for - and converting - backslashes
This commit is contained in:
@@ -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('/')))
|
||||
|
||||
Reference in New Issue
Block a user