mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 03:37:58 +00:00
blocks: allow using numbers in programs name
Additionally increase maximum program name size
This commit is contained in:
@@ -166,7 +166,7 @@ def load(req):
|
||||
return {'names': [], 'programs': [], 'message': str(e)}
|
||||
|
||||
|
||||
name_regexp = re.compile(r'^[a-zA-Z-_.]{0,20}$')
|
||||
name_regexp = re.compile(r'^[a-zA-Z1-9-_.]{0,30}$')
|
||||
|
||||
def store(req):
|
||||
if not name_regexp.match(req.name):
|
||||
|
||||
Reference in New Issue
Block a user