Skip to content

Commit

Permalink
MITRE Issue mitre#13: Regex variable length whitespace
Browse files Browse the repository at this point in the history
mitre#13

Signed-off-by: Mark-Kozak <[email protected]>
  • Loading branch information
Mark-Kozak authored Dec 6, 2023
1 parent 7ef7cca commit 678e85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controls/AMZL-02-710343.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 678e85f

Please sign in to comment.