Merge pull request #964 from Blizzard/wildcard-configmap

Add support for wildcards in mapconfig.
This commit is contained in:
J. Perkins 2017-12-05 11:39:47 -05:00 committed by GitHub
commit 8e7260997f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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