Simplify check for String include/exclude option.
This commit is contained in:
parent
bbd466497f
commit
9d3d095bca
|
@ -186,7 +186,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
%w[include exclude].each do |option|
|
%w[include exclude].each do |option|
|
||||||
if config.has_key?(option) && config[option].is_a?(String)
|
if config.fetch(option, []).is_a?(String)
|
||||||
Jekyll.logger.warn "Deprecation:", "The '#{option}' configuration option" +
|
Jekyll.logger.warn "Deprecation:", "The '#{option}' configuration option" +
|
||||||
" must now be specified as an array, but you specified" +
|
" must now be specified as an array, but you specified" +
|
||||||
" a string. For now, we've treated the string you provided" +
|
" a string. For now, we've treated the string you provided" +
|
||||||
|
|
Loading…
Reference in New Issue