Permalink
Browse files

Less warnings

  • Loading branch information...
1 parent 6c1e726 commit 0e942259e9f6f9395a129fc34396e19a4403cd6c @probablycorey committed Aug 3, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/stdlib/init.lua
View
@@ -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
})

0 comments on commit 0e94225

Please sign in to comment.