Skip to content

Commit d57bee4

Browse files
committed
Fix regression: UseNestedDirectoriesForNamespaces
1 parent fd6070d commit d57bee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ public static string CleanUpDirectoryName(string text)
743743

744744
public static string CleanUpPath(string text)
745745
{
746-
return CleanUpName(text, separateAtDots: true, treatAsFileName: true, treatAsPath: true);
746+
return CleanUpName(text, separateAtDots: true, treatAsFileName: false, treatAsPath: true)
747+
.Replace('.', Path.DirectorySeparatorChar);
747748
}
748749

749750
static bool IsReservedFileSystemName(string name)

0 commit comments

Comments
 (0)