strip leading underscores in cname
This commit is contained in:
parent
e3508e365f
commit
d24d8720db
|
@ -94,6 +94,7 @@ def to_canonical(s):
|
|||
s = s.encode('utf8')
|
||||
s = str(s)
|
||||
s = s.strip()
|
||||
s = s.lstrip('_')
|
||||
s = re.sub(r"\s", "-", s)
|
||||
s = re.sub(r"[" + re.escape(reserved_chars) + "]", "", s)
|
||||
s = re.sub(r"[" + re.escape(unsafe_chars) + "]", "", s)
|
||||
|
|
Loading…
Reference in a new issue