diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/lualibs/lualibs-file.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/lualibs/lualibs-file.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/lualibs/lualibs-file.lua b/Master/texmf-dist/tex/luatex/lualibs/lualibs-file.lua index 29416caf03b..acb4216b0d4 100644 --- a/Master/texmf-dist/tex/luatex/lualibs/lualibs-file.lua +++ b/Master/texmf-dist/tex/luatex/lualibs/lualibs-file.lua @@ -153,7 +153,11 @@ function file.splitname(str,splitdrive) end function file.splitbase(str) - return str and lpegmatch(pattern_d,str) -- returns path, base+suffix + if str then + return lpegmatch(pattern_d,str) -- returns path, base+suffix (path has / appended, might change at some point) + else + return "", str -- assume no path + end end ---- stripslash = C((1 - P("/")^1*P(-1))^0) |