summaryrefslogtreecommitdiffstats
path: root/acf2/path.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf2/path.lua')
-rw-r--r--acf2/path.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/acf2/path.lua b/acf2/path.lua
index d080c42..431f0df 100644
--- a/acf2/path.lua
+++ b/acf2/path.lua
@@ -8,9 +8,9 @@ local M = {}
local map = require('acf2.util').map
-local up = {}
+M.up = {}
M.wildcard = {}
-local special = {['..']=up, ['*']=M.wildcard}
+local special = {['..']=M.up, ['*']=M.wildcard}
function M.is_absolute(path) return path:sub(1, 1) == '/' end
@@ -93,7 +93,7 @@ function M.to_absolute(path, base)
local comps = M.split(path)
local i = 1
while i <= #comps do
- if comps[i] == up then
+ if comps[i] == M.up then
if i == 1 then error('Invalid path: '..path) end
table.remove(comps, i - 1)
table.remove(comps, i - 1)