Fix pattern matching in deprecated value removal handler

This commit is contained in:
Jason Perkins 2013-10-08 13:45:37 -04:00
parent 084f846192
commit 192cf143a7

View File

@ -252,8 +252,9 @@
if field.deprecated then
if value:contains("*") then
local current = target.configset[field.name]
local mask = path.wildcards(value)
for _, item in ipairs(current) do
if item:match(value) == item then
if item:match(mask) == item then
check(item)
end
end