From 44304e49b534df7042e306e3d2ced91fba2cd417 Mon Sep 17 00:00:00 2001 From: Tim Skirvin Date: Wed, 17 Mar 2021 10:54:49 -0500 Subject: [PATCH] regex style change to make rubocop happy --- lib/puppet/provider/firewall/iptables.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/firewall/iptables.rb b/lib/puppet/provider/firewall/iptables.rb index f423949..f193d5b 100644 --- a/lib/puppet/provider/firewall/iptables.rb +++ b/lib/puppet/provider/firewall/iptables.rb @@ -576,7 +576,7 @@ Puppet::Type.type(:firewall).provide :iptables, parent: Puppet::Provider::Firewa end # manually remove comments if they made it this far - if values =~ %r{-m comment --comment} + if %r{-m comment --comment}.match?(values) values = values.sub(%r{-m comment --comment "((?:\\"|[^"])*)"}, {}) end -- 2.45.2