haskell / filepath

Haskell FilePath core library
BSD 3-Clause "New" or "Revised" License
66 stars 32 forks source link

`splitExtenstion` misbehaves on windows with network drives #185

Closed hasufell closed 1 year ago

hasufell commented 1 year ago
ghci> W.splitExtension "\\shared.with.dots"
("\\shared.with",".dots")

This is wrong. shared.with.dots is not a filename.

hasufell commented 1 year ago

Discovered in https://github.com/haskell/filepath/pull/183

hasufell commented 1 year ago

invalid... forgot that we need to escape slashes, lol