From 624cbb5da392e9403984dd1cf368c0d408b1c2a8 Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Sat, 3 May 2014 13:55:34 +0200 Subject: 2014-01-03 00:42:00 --- tex/context/base/l-url.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tex/context/base/l-url.lua') diff --git a/tex/context/base/l-url.lua b/tex/context/base/l-url.lua index 7bb731254..7b7910fa7 100644 --- a/tex/context/base/l-url.lua +++ b/tex/context/base/l-url.lua @@ -26,8 +26,6 @@ local lpegmatch, lpegpatterns, replacer = lpeg.match, lpeg.patterns, lpeg.replac -- | ___________|____________ | -- / \ / \ | -- urn:example:animal:ferret:nose interpretable as extension --- --- also nice: http://url.spec.whatwg.org/ (maybe some day ...) url = url or { } local url = url @@ -45,7 +43,7 @@ local hexdigit = R("09","AF","af") local plus = P("+") local nothing = Cc("") local escapedchar = (percent * C(hexdigit * hexdigit)) / tochar -local escaped = (plus / " ") + escapedchar -- so no loc://foo++.tex +local escaped = (plus / " ") + escapedchar local noslash = P("/") / "" @@ -191,11 +189,7 @@ local function hashed(str) -- not yet ok (/test?test) return s end --- inspect(hashed("template:///test")) --- inspect(hashed("template:///test++.whatever")) --- inspect(hashed("template:///test%2B%2B.whatever")) --- inspect(hashed("template:///test%x.whatever")) --- inspect(hashed("tem%2Bplate:///test%x.whatever")) +-- inspect(hashed("template://test")) -- Here we assume: -- -- cgit v1.2.3