Skip to content

Commit 44304e4

Browse files
committed
regex style change to make rubocop happy
1 parent 93f38b6 commit 44304e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/firewall/iptables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def self.rule_to_hash(line, table, counter)
576576
end
577577

578578
# manually remove comments if they made it this far
579-
if values =~ %r{-m comment --comment}
579+
if %r{-m comment --comment}.match?(values)
580580
values = values.sub(%r{-m comment --comment "((?:\\"|[^"])*)"}, {})
581581
end
582582

0 commit comments

Comments
 (0)