Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit bae9df3

Browse files
authored
Merge pull request #2 from hishamhm/master
Fix test for Lua 5.3 and above. (Requires further edits.)
2 parents c7d26c3 + 5e55ba3 commit bae9df3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/logging.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ local function tostring(value)
198198
end
199199
logging.tostring = tostring
200200

201-
if _VERSION ~= 'Lua 5.2' then
201+
local luamaj, luamin = _VERSION:match("Lua (%d+)%.(%d+)")
202+
if luamaj == 5 and luamin < 2 then
202203
-- still create 'logging' global for Lua versions < 5.2
203204
_G.logging = logging
204205
end

0 commit comments

Comments
 (0)