Fix for variants: :any special case
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user