Python: Fix off-by-one error in regex parsing.

This commit is contained in:
Mark Shannon
2018-12-03 16:41:39 +00:00
parent d933152a54
commit a5b79e92a5
8 changed files with 48 additions and 5 deletions

View File

@@ -133,3 +133,6 @@ VERBOSE_REGEX = r"""
# Compiled regular expression marking it as verbose
ODASA_6786 = re.compile(VERBOSE_REGEX, re.VERBOSE)
#Named group with caret and empty choice.
re.compile(r'(?:(?P<n1>^(?:|x)))')