Skip to content

Commit

Permalink
Fix regression in System.FilePath.Windows.normalise
Browse files Browse the repository at this point in the history
W.normalise "//." would return "\\\\.\\" instead of
"\\\\.".

This is a regression since the 1.4.100.0 rewrite.

Fixes #187
  • Loading branch information
hasufell committed Feb 18, 2023
1 parent 0a1a344 commit 3e5cdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/FilePath/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ normalise filepath =
then singleton _period
else joinDrive d p

addPathSeparator = isDirPath filepath
addPathSeparator = isDirPath pth
&& not (hasTrailingPathSeparator result)
&& not (isRelativeDrive drv)

Expand Down

0 comments on commit 3e5cdbc

Please sign in to comment.