lib/goodcheck/config_loader.rb in goodcheck-2.4.4 vs lib/goodcheck/config_loader.rb in goodcheck-2.4.5
- old
+ new
@@ -358,10 +358,10 @@
when String
Pattern::Literal.new(source: pat, case_sensitive: true)
when ::Regexp
Pattern::Regexp.new(source: pattern,
regexp: pat,
- multiline: pat.multiline?,
+ multiline: pat.options & ::Regexp::MULTILINE == ::Regexp::MULTILINE,
case_sensitive: !pat.casefold?)
end
when Hash
if pattern[:glob]
print_warning_once "🌏 Pattern with glob is deprecated: globs are ignored at all."