remove name restiction
This commit is contained in:
parent
601c3fc54d
commit
10efcf877b
|
@ -42,7 +42,8 @@ NAME_REGEXP = re.compile(r'^[a-zA-Z][a-zA-Z\d_-]*$')
|
||||||
def valid_name(name):
|
def valid_name(name):
|
||||||
if not isinstance(name, str):
|
if not isinstance(name, str):
|
||||||
return False
|
return False
|
||||||
return re.match(NAME_REGEXP, name) is not None
|
return True
|
||||||
|
# return re.match(NAME_REGEXP, name) is not None
|
||||||
|
|
||||||
|
|
||||||
#____________________________________________________________
|
#____________________________________________________________
|
||||||
|
|
Loading…
Reference in New Issue