From 7d4e2eecc690c3e44f64c16b212ecf13b030f731 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 26 Jul 2013 17:32:18 +0200 Subject: stript trailing slashes before joining paths --- luaotfload-tool.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'luaotfload-tool.lua') diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 801ae72..78b1a61 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -1028,8 +1028,7 @@ do return lpegmatch (p_permissions, raw) end - local trailingslashes = P"/"^1 * P(-1) - local stripslashes = C((1 - trailingslashes)^0) + local stripslashes = names.patterns.stripslashes local get_permissions = function (t, location) if stringsub (location, #location) == "/" then -- cgit v1.2.3