mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #127 from orhtej2/more_set_headers_regex
Allow multiple whitespace after 'more_set_headers'
This commit is contained in:
commit
8c00413d2f
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
|
||||
)
|
||||
|
||||
lines = [line.strip() for line in more_set_headers_lines if not right_syntax(line)]
|
||||
|
|
Loading…
Reference in a new issue