From 678e85fb1ccfd3c4356ea24655f5f696e389a7f8 Mon Sep 17 00:00:00 2001 From: Mark-Kozak <49161262+Mark-Kozak@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:55:15 -0500 Subject: [PATCH] MITRE Issue #13: Regex variable length whitespace https://github.com/mitre/amazon-linux-2-stig-ready-baseline/issues/13 Signed-off-by: Mark-Kozak <49161262+Mark-Kozak@users.noreply.github.com> --- controls/AMZL-02-710343.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/AMZL-02-710343.rb b/controls/AMZL-02-710343.rb index 807e134..b93509d 100644 --- a/controls/AMZL-02-710343.rb +++ b/controls/AMZL-02-710343.rb @@ -39,7 +39,7 @@ end else describe command("grep -ir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d").stdout.strip do - it { should match /^[^#].*Defaults timestamp_timeout=\d/ } + it { should match /^[^#].*Defaults\s*timestamp_timeout=\d/ } it { should_not match /\n/ } end end