Fix regex string format

pull/18777/head
Ricky Cook 10 years ago committed by Matt Clay
parent a6a9e2c247
commit 522c644bf1

@ -127,7 +127,7 @@ OPTIONS = {'chdir': None,
# the line is reached
OPTIONS_REGEX = '|'.join(OPTIONS.keys())
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
)
)

Loading…
Cancel
Save