Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 9e04bbf

Browse files
committed
Fix slashes
1 parent 02eac65 commit 9e04bbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Runtime.Extensions/tests/System/IO/PathTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,8 @@ public static void GetFullPath_Windows_83Paths()
780780

781781
// Make sure the shortened name expands back to the original one
782782
// Sometimes shortening or GetFullPath is changing the casing of "temp" on some test machines: normalize both sides
783-
tempFilePath = Regex.Replace(tempFilePath, @"\temp\\", @"\TEMP\\", RegexOptions.IgnoreCase);
784-
shortName = Regex.Replace(Path.GetFullPath(shortName), @"\temp\\", @"\TEMP\\", RegexOptions.IgnoreCase);
783+
tempFilePath = Regex.Replace(tempFilePath, @"\\temp\\", @"\TEMP\", RegexOptions.IgnoreCase);
784+
shortName = Regex.Replace(Path.GetFullPath(shortName), @"\\temp\\", @"\TEMP\", RegexOptions.IgnoreCase);
785785
Assert.Equal(tempFilePath, shortName);
786786

787787
// Should work with device paths that aren't well-formed extended syntax

0 commit comments

Comments
 (0)