summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtxrun.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/lua/mtxrun.lua')
-rw-r--r--scripts/context/lua/mtxrun.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua
index 246d08103..216a8080f 100644
--- a/scripts/context/lua/mtxrun.lua
+++ b/scripts/context/lua/mtxrun.lua
@@ -2505,10 +2505,11 @@ end
-- todo: cache them
-function url.hashed(str)
+function url.hashed(str) -- not yet ok (/test?test)
local s = url.split(str)
local somescheme = s[1] ~= ""
- if not somescheme then
+ local somequery = s[4] ~= ""
+ if not somescheme and not somequery then
return {
scheme = "file",
authority = "",
@@ -2531,6 +2532,7 @@ function url.hashed(str)
end
end
+
function url.hasscheme(str)
return url.split(str)[1] ~= ""
end