Allow 64 characters for collection names instead of 32.

This commit is contained in:
Ottermandias 2023-04-29 15:50:08 +02:00
parent 3d5765796e
commit 89b5877443

View file

@ -208,7 +208,7 @@ public class CollectionStorage : IReadOnlyList<ModCollection>, IDisposable
/// Does not check for uniqueness. /// Does not check for uniqueness.
/// </summary> /// </summary>
private static bool IsValidName(string name) private static bool IsValidName(string name)
=> name.Length is > 0 and < 32 && name.All(c => !c.IsInvalidAscii() && c is not '|' && !c.IsInvalidInPath()); => name.Length is > 0 and < 64 && name.All(c => !c.IsInvalidAscii() && c is not '|' && !c.IsInvalidInPath());
/// <summary> /// <summary>
/// Read all collection files in the Collection Directory. /// Read all collection files in the Collection Directory.