use any? instead
This commit is contained in:
parent
adba101734
commit
c627cd3519
|
@ -328,7 +328,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def glob_include?(exps, e)
|
def glob_include?(exps, e)
|
||||||
!(exps.index { |exp| File.fnmatch?(exp, e) }).nil?
|
exps.any? { |exp| File.fnmatch?(exp, e) })
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get the implementation class for the given Converter.
|
# Get the implementation class for the given Converter.
|
||||||
|
|
Loading…
Reference in New Issue