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:
Pau Espin 2020-05-06 16:28:01 +02:00 committed by pespin
parent ab1904a307
commit e0b899079c
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ import os
from . import log
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}')
HWADDR_RE = re.compile('([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}')
IMSI_RE = re.compile('[0-9]{6,15}')