mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-02-24 13:02:46 +01:00
update include regex
This commit is contained in:
parent
832838895c
commit
dedb388e35
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ ssl_certificate_key $keypath;
|
||||||
ssl_certificate $certpath;
|
ssl_certificate $certpath;
|
||||||
""".lstrip()
|
""".lstrip()
|
||||||
SERVER_BLOCK_RE = re.compile(r"(?:^|[{};])\s*server\s*{", re.MULTILINE)
|
SERVER_BLOCK_RE = re.compile(r"(?:^|[{};])\s*server\s*{", re.MULTILINE)
|
||||||
INCLUDE_RE = re.compile(r"(?:^|[{};])\s*include\s+([^;]+);", re.MULTILINE)
|
INCLUDE_RE = re.compile(r"(?:^|[{};])\s*include\s+([^;]+)(?=;)", re.MULTILINE)
|
||||||
SERVER_NAME_RE = re.compile(r"(?:^|[{};])\s*server_name\s+([^;]+);", re.MULTILINE)
|
SERVER_NAME_RE = re.compile(r"(?:^|[{};])\s*server_name\s+([^;]+)(?=;)", re.MULTILINE)
|
||||||
|
|
||||||
|
|
||||||
class ConfigError(Exception):
|
class ConfigError(Exception):
|
||||||
|
|
Loading…
Add table
Reference in a new issue