From caee27ddaf8b35b0c3449f5837286922cf3a738e Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sat, 10 Feb 2024 21:32:56 +0100 Subject: [PATCH] Allow multiple whitespace after 'more_set_headers' --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 4eac4e7..e9e74d2 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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):