mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
parent
09082e6e7f
commit
84f27cfa68
1 changed files with 2 additions and 3 deletions
|
@ -127,9 +127,8 @@ 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_regex})=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'.format(
|
r'(^|\s)(' + OPTIONS_REGEX +
|
||||||
options_regex=OPTIONS_REGEX
|
r')=(?P<quote>[\'"])?(.*?)(?(quote)(?<!\\)(?P=quote))((?<!\\)(?=\s)|$)'
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue