summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata_filter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua
index ef4f44e..5a547ee 100644
--- a/scripts/metadata_filter.lua
+++ b/scripts/metadata_filter.lua
@@ -52,7 +52,7 @@ function resolve_url(site_url, ref_file, target_file)
52 local ref_base_dir = path.directory(ref_file) 52 local ref_base_dir = path.directory(ref_file)
53 local abs = target_file 53 local abs = target_file
54 local rel = path.make_relative(abs, ref_base_dir, true) 54 local rel = path.make_relative(abs, ref_base_dir, true)
55 local full = (abs[1] == "/" and (site_url .. abs)) or abs 55 local full = (abs:sub(1, 1) == "/" and (site_url .. abs)) or abs
56 56
57 return { abs = abs, rel = rel, full = full } 57 return { abs = abs, rel = rel, full = full }
58end 58end