From 23043499b9a5423ecbc19e968142df17dc5d15d1 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Fri, 14 Oct 2016 23:45:15 +0300 Subject: Relax Lua version detection to support Ravi Ravi has "Ravi 5.3" as _VERSION. Don't use _VERSION:sub(5) to get Lua version, match " (5%.[123])$" instead. --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install.bat') diff --git a/install.bat b/install.bat index cfa080e5..0a35a28a 100644 --- a/install.bat +++ b/install.bat @@ -262,7 +262,7 @@ local function detect_lua_version(interpreter_path) local full_version = handler:read("*a") handler:close() - local version = full_version:match("^Lua (5%.[123])$") + local version = full_version:match(" (5%.[123])$") if not version then return nil, "unknown interpreter version '" .. full_version .. "'" end -- cgit v1.2.3-55-g6feb