From b949cd054ac1e690d3d69ce15d08d5ddd5af0de4 Mon Sep 17 00:00:00 2001 From: Ajinkya Date: Thu, 6 Oct 2022 19:10:08 +0530 Subject: [PATCH] updated regex for pipefail --- src/ansiblelint/rules/risky_shell_pipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansiblelint/rules/risky_shell_pipe.py b/src/ansiblelint/rules/risky_shell_pipe.py index abfac6b394..f766cf1c77 100644 --- a/src/ansiblelint/rules/risky_shell_pipe.py +++ b/src/ansiblelint/rules/risky_shell_pipe.py @@ -27,7 +27,7 @@ class ShellWithoutPipefail(AnsibleLintRule): tags = ["command-shell"] version_added = "v4.1.0" - _pipefail_re = re.compile(r"^\s*set.*[+-][A-z]*o\s*pipefail", re.M) + _pipefail_re = re.compile(r"^\s*set.*[+-][A-Za-z]*o\s*pipefail", re.M) _pipe_re = re.compile(r"(?