schema: Allow keys to start with a number
YAML allows it, and it will allow suites tarting with a number on its name (like the '4g' one) to register its own schema on next commits. Change-Id: I64e5a9d6604085d3b17eba30498a5e7a66242cc8
This commit is contained in:
parent
ab1904a307
commit
e0b899079c
|
@ -23,7 +23,7 @@ import os
|
||||||
from . import log
|
from . import log
|
||||||
from . import util
|
from . import util
|
||||||
|
|
||||||
KEY_RE = re.compile('[a-zA-Z][a-zA-Z0-9_]*')
|
KEY_RE = re.compile('[a-zA-Z0-9][a-zA-Z0-9_]*')
|
||||||
IPV4_RE = re.compile('([0-9]{1,3}.){3}[0-9]{1,3}')
|
IPV4_RE = re.compile('([0-9]{1,3}.){3}[0-9]{1,3}')
|
||||||
HWADDR_RE = re.compile('([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}')
|
HWADDR_RE = re.compile('([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}')
|
||||||
IMSI_RE = re.compile('[0-9]{6,15}')
|
IMSI_RE = re.compile('[0-9]{6,15}')
|
||||||
|
|
Loading…
Reference in New Issue