From aab057b7e54339fb686764efb8682e0f9665b5b6 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Wed, 3 Feb 2016 18:30:58 +0300 Subject: Fix pattern conversion in CLI Patterns are converted to other patterns (as accepted by 'include' option), not to files. "foo/bar.lua" should be converted to "foo/bar", not "foo.bar". --- src/bin/luacov | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/luacov b/src/bin/luacov index 7aed2d2..c28a61b 100755 --- a/src/bin/luacov +++ b/src/bin/luacov @@ -61,7 +61,7 @@ local function read_key(i) end local function norm_pat(p) - return (p:gsub("[/\\]", "."):gsub("%.lua$", "")) + return (p:gsub("\\", "/"):gsub("%.lua$", "")) end local i = 1 -- cgit v1.2.1