Skip to content

Commit 2bb8d01

Browse files
committed
Fix for #34
1 parent c442914 commit 2bb8d01

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Library/DiscUtils.Core/Internal/Utilities.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,12 @@ public static string MakeRelativePath(string path, string basePath)
339339
/// <returns><c>true</c> if the name is 8.3, otherwise <c>false</c>.</returns>
340340
public static bool Is8Dot3(string name)
341341
{
342-
if (name.Length > 12)
342+
if (name.Length is 0 or > 12)
343+
{
344+
return false;
345+
}
346+
347+
if (name[0] == '.')
343348
{
344349
return false;
345350
}

0 commit comments

Comments
 (0)