summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/core/diagnostics.lua5
-rw-r--r--server/test/diagnostics/init.lua6
2 files changed, 4 insertions, 7 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index d88c4fc6..64852f03 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -52,10 +52,7 @@ function mt:searchUndefinedGlobal(callback)
goto NEXT_VAR
end
local lIndex = index:lower()
- if lIndex == 'log' or lIndex == '' then
- goto NEXT_VAR
- end
- if index:find '^_*%u' then
+ if lIndex == '' then
goto NEXT_VAR
end
for _, info in ipairs(field) do
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index d3e3d0e8..8a2dcf61 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -64,9 +64,9 @@ local <!x!>
TEST [[
print(<!x!>)
-print(log)
-print(X)
-print(Log)
+print(<!log!>)
+print(<!X!>)
+print(<!Log!>)
print(_VERSION)
print(<!y!>)
print(z)