Skip to content

Commit 29c33b5

Browse files
committed
#445 cut title when its too long
1 parent bde300e commit 29c33b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Components/Utils/BExIS.Utils/Files/FileNameUtility.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ public static string SanitizeFileName(string fileName, char replacementChar = '-
7373
sanitizedName = sanitizedName.Replace(doubleReplacement, replacementChar.ToString());
7474
}
7575

76+
// length
77+
if (sanitizedName.Length > 40)
78+
{
79+
sanitizedName = sanitizedName.Substring(0, 40)+"...";
80+
}
81+
7682
return sanitizedName;
7783
}
7884
}

0 commit comments

Comments
 (0)