From 3becba020712e78a8a81e11ce4e0bfcc30f631d2 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 16 Nov 2021 19:31:14 +0100 Subject: Fix full url generation --- scripts/metadata_filter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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) local ref_base_dir = path.directory(ref_file) local abs = target_file local rel = path.make_relative(abs, ref_base_dir, true) - local full = (abs[1] == "/" and (site_url .. abs)) or abs + local full = (abs:sub(1, 1) == "/" and (site_url .. abs)) or abs return { abs = abs, rel = rel, full = full } end -- cgit v1.2.3-70-g09d2