Skip to content

Commit cd38591

Browse files
committed
Oops, should use the right separator
1 parent d9be266 commit cd38591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Microsoft.AspNetCore.Razor.Utilities.Shared.Test/PathUtilitiesTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void GetDirectoryName_NetFxInvalid(string path)
235235
// Path.Combine on net472 throws on invalid path characters, so have to do this manually.
236236
static string PathCombine(string path1, string path2)
237237
{
238-
return $"""{path1}\{path2}""";
238+
return $"""{path1}{Path.DirectorySeparatorChar}{path2}""";
239239
}
240240
}
241241

0 commit comments

Comments
 (0)