Add support for wildcards in mapconfig.

This commit is contained in:
Tom van Dijck 2017-12-04 14:59:11 -08:00
parent 02f5a75fc9
commit be4d6852eb

View File

@ -516,7 +516,8 @@
local testpattern = function(pattern, pairing, i)
local j = 1
while i <= #pairing and j <= #pattern do
if pairing[i] ~= pattern[j] then
local wd = path.wildcards(pattern[j])
if pairing[i]:match(wd) ~= pairing[i] then
return false
end
i = i + 1