-
Notifications
You must be signed in to change notification settings - Fork 260
Open
Milestone
Description
Linux
Lua 5.4.6
penlight 1.15.0-1
local path = require 'pl.path'
print(path.normpath("/foo//")) -- Output is ok: /foo
print(path.normpath("//foo//bar")) -- Output fails (exessive forward slash): //foo/bar
print(path.normpath("//")) -- Output fails (exessive forward slash): //
print(path.normpath("///foo//bar")) -- Output is ok: /foo/bar
print(path.normpath("///")) -- Output is ok: /
print(path.normpath("////foo//bar")) -- Output is ok: /foo/bar
print(path.normpath("////")) -- Output is ok: /
P.S. I don't know how it works in Windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels