summaryrefslogtreecommitdiff
path: root/tex/context/base/l-url.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/l-url.lua')
-rw-r--r--tex/context/base/l-url.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/l-url.lua b/tex/context/base/l-url.lua
index a161d2265..f8752f8a3 100644
--- a/tex/context/base/l-url.lua
+++ b/tex/context/base/l-url.lua
@@ -66,10 +66,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 = "",
@@ -92,6 +93,8 @@ function url.hashed(str)
end
end
+--~ table.print(url.hashed("/test?test"))
+
function url.hasscheme(str)
return url.split(str)[1] ~= ""
end