mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Don't allow dollar_var to swalllow characters like "{"
This commit is contained in:
parent
be8f0bc53b
commit
68500cd436
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class RawNginxParser(object):
|
|||
right_bracket = space.leaveWhitespace() + Literal("}").suppress()
|
||||
semicolon = Literal(";").suppress()
|
||||
key = Word(alphanums + "_/+-.")
|
||||
dollar_var = Combine(Literal('$') + nonspace)
|
||||
dollar_var = Combine(Literal('$') + Regex(r"[^\{\};,\s]+"))
|
||||
condition = Regex(r"\(.+\)")
|
||||
# Matches anything that is not a special character AND any chars in single
|
||||
# or double quotes
|
||||
|
|
|
|||
Loading…
Reference in a new issue