Skip to content

Commit 3e5cdbc

Browse files
committed
Fix regression in System.FilePath.Windows.normalise
W.normalise "//." would return "\\\\.\\" instead of "\\\\.". This is a regression since the 1.4.100.0 rewrite. Fixes #187
1 parent 0a1a344 commit 3e5cdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

System/FilePath/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ normalise filepath =
963963
then singleton _period
964964
else joinDrive d p
965965

966-
addPathSeparator = isDirPath filepath
966+
addPathSeparator = isDirPath pth
967967
&& not (hasTrailingPathSeparator result)
968968
&& not (isRelativeDrive drv)
969969

0 commit comments

Comments
 (0)