We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a084fc + fa9d54e commit ef00dedCopy full SHA for ef00ded
lib/puppet/functions/apache/bool2httpd.rb
@@ -25,6 +25,10 @@ def bool2httpd(arg)
25
private
26
27
def matches_string?(value, matcher)
28
- value.is_a?(String) && value.match?(matcher)
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4.0')
29
+ value =~ matcher
30
+ else
31
+ value.is_a?(String) && value.match?(matcher)
32
+ end
33
end
34
0 commit comments