summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--is_required.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/is_required.lua b/is_required.lua
index 40b3e88..953b673 100644
--- a/is_required.lua
+++ b/is_required.lua
@@ -5,7 +5,7 @@ local function is_required()
local x = debug.getinfo(n)
if x == nil then break end
n = n + 1
- if x.name == 'require' then
+ if x.func == _G.require then
res = true
break