lib/directory_searcher.rb in markdown_exec-2.0.2 vs lib/directory_searcher.rb in markdown_exec-2.0.3

- old
+ new

@@ -100,10 +100,10 @@ # @param pattern [Regexp] The regular expression pattern to search for. # @param paths [Array<String>] List of directories to search in. # @param include_subdirectories [Boolean] Whether to search in subdirectories. # @param filename_glob [String, nil] Glob pattern for file names. def initialize(pattern, paths, include_subdirectories: true, filename_glob: '*.[Mm][Dd]') #'*.md' - @pattern = pattern + @pattern = Regexp.new(pattern, Regexp::IGNORECASE) @paths = paths @include_subdirectories = include_subdirectories @filename_glob = filename_glob end