summaryrefslogtreecommitdiff
path: root/tex/context/base/l-file.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-01-31 02:00:34 +0200
committerMarius <mariausol@gmail.com>2013-01-31 02:00:34 +0200
commitf3d4c3eb9b808f3b7fd0b95b67911ff2527f380a (patch)
tree73e605f447a9bc2f62f2538f1818e2f9ab57ec60 /tex/context/base/l-file.lua
parent11315fc4ef7dc87885f46bf875540da27dd7fa5d (diff)
downloadcontext-f3d4c3eb9b808f3b7fd0b95b67911ff2527f380a.tar.gz
beta 2013.01.30 23:53
Diffstat (limited to 'tex/context/base/l-file.lua')
-rw-r--r--tex/context/base/l-file.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/l-file.lua b/tex/context/base/l-file.lua
index e91eeac4c..fcf4d65e3 100644
--- a/tex/context/base/l-file.lua
+++ b/tex/context/base/l-file.lua
@@ -166,7 +166,8 @@ end
-- inspect(file.nametotable("dir/file.ext"))
-- inspect(file.nametotable("/dir/file.ext"))
-local pattern = Cs(((period * noperiod^1 * -1)/"" + 1)^1)
+----- pattern = Cs(((period * noperiod^1 * -1) / "" + 1)^1)
+local pattern = Cs(((period * (1-period-slashes)^1 * -1) / "" + 1)^1)
function file.removesuffix(name)
return name and lpegmatch(pattern,name)