fix os.istarget and os.ishost to use the systemTags table as well.
--
function os.istarget(id)
- return (os.target():lower() == id:lower())
+ local tags = os.getSystemTags(os.target())
+ return table.contains(tags, id:lower())
end
function os.is(id)
--
function os.ishost(id)
- return (os.host():lower() == id:lower())
+ local tags = os.getSystemTags(os.host())
+ return table.contains(tags, id:lower())
end
}
function os.getSystemTags(name)
- return os.systemTags[name] or name
+ return os.systemTags[name:lower()] or { name:lower() }
end
