ignore_file can be a Regexp, forgotten in d5f29a8
this caused a regression in d5f29a8
,
that should be fixed by the current commit.
This commit is contained in:
@ -57,7 +57,7 @@ module Cmdtest
|
||||
|
||||
def _ignore_file?(path)
|
||||
@ignored_files.any? do |ignored|
|
||||
if ignored.index("*")
|
||||
if String === ignored && ignored.index("*")
|
||||
File.fnmatch(ignored, path, File::FNM_PATHNAME)
|
||||
else
|
||||
ignored === path
|
||||
|
Reference in New Issue
Block a user