diff options
Diffstat (limited to 'tex/context/base/l-file.lua')
-rw-r--r-- | tex/context/base/l-file.lua | 3 |
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) |