lib/io_streams/paths/matcher.rb in iostreams-1.0.0 vs lib/io_streams/paths/matcher.rb in iostreams-1.1.0

- old
+ new

@@ -17,10 +17,10 @@ # # Note: Absolute paths in the pattern are not supported. def initialize(path, pattern, case_sensitive: false, hidden: false) extract_optimized_path(path, pattern) - @flags = ::File::FNM_EXTGLOB + @flags = ::File::FNM_EXTGLOB | ::File::FNM_PATHNAME @flags |= ::File::FNM_CASEFOLD unless case_sensitive @flags |= ::File::FNM_DOTMATCH if hidden end # Returns whether the relative `file_name` matches