From 07a0eb180872401b271de40190603df8f3ab3db2 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Fri, 30 Jan 2015 00:09:23 +0200 Subject: specify search pattern for references --- aconf/path.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'aconf/path.lua') diff --git a/aconf/path.lua b/aconf/path.lua index e13f17c..85fc347 100644 --- a/aconf/path.lua +++ b/aconf/path.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012-2014 Kaarle Ritvanen +Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] @@ -33,7 +33,9 @@ function M.rawjoin(p1, p2, ...) end function M.join(parent, ...) - return M.rawjoin(parent, table.unpack(map(M.escape, {...}))) + local args = map(M.escape, {...}) + if parent > '' then table.insert(args, 1, parent) end + return M.rawjoin(table.unpack(args)) end -- cgit v1.2.3