Fix regex string format
This commit is contained in:
parent
b195b5a6bb
commit
6db328c79a
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ OPTIONS = {'chdir': None,
|
||||||
# the line is reached
|
# the line is reached
|
||||||
OPTIONS_REGEX = '|'.join(OPTIONS.keys())
|
OPTIONS_REGEX = '|'.join(OPTIONS.keys())
|
||||||
PARAM_REGEX = re.compile(
|
PARAM_REGEX = re.compile(
|
||||||
r'(^|\s)({options_list})=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'.format(
|
r'(^|\s)({options_regex})=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'.format(
|
||||||
options_regex=OPTIONS_REGEX
|
options_regex=OPTIONS_REGEX
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue