Fix for variants: :any special case

This commit is contained in:
John Hawthorn 2018-09-12 18:21:18 -07:00
parent cc9a0de660
commit a33776b0f5

@ -387,7 +387,9 @@ def find_template_paths_from_details(path, details)
# details.
match = filename.match(regex)
EXTENSIONS.keys.reverse.map do |ext|
if match[ext].nil?
if ext == :variants && details[ext] == :any
match[ext].nil? ? 0 : 1
elsif match[ext].nil?
# No match should be last
details[ext].length
else