mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Allow multiple whitespace after 'more_set_headers'
This commit is contained in:
parent
d0c763ee28
commit
caee27ddaf
1 changed files with 1 additions and 1 deletions
|
@ -1418,7 +1418,7 @@ class Configurations(TestSuite):
|
|||
|
||||
def right_syntax(line):
|
||||
return re.search(
|
||||
r"more_set_headers [\"\'][\w-]+\s?: .*[\"\'];", line
|
||||
r"more_set_headers +[\"\'][\w-]+\s?: .*[\"\'];", line
|
||||
)
|
||||
|
||||
if any(not right_syntax(line) for line in more_set_headers_lines):
|
||||
|
|
Loading…
Reference in a new issue