diff --git a/lib/stdlib/init.lua b/lib/stdlib/init.lua index 04e9929..6489f3a 100644 --- a/lib/stdlib/init.lua +++ b/lib/stdlib/init.lua @@ -2,11 +2,11 @@ setmetatable(_G, { __index = function(self, key) local class = wax.class[key] if class then self[key] = class end -- cache it for future use - - if not class and key:match("^[A-Z][A-Z][A-Z]") then -- looks like they were trying to use an objective-c obj + + if not class and key:match("^[A-Z][A-Z][A-Z][^A-Z]") then -- looks like they were trying to use an objective-c obj print("WARNING: No object named '" .. key .. "' found.") end - + return class end })