mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Enable nullability everywhere
This commit is contained in:
@@ -124,7 +124,7 @@ namespace SabreTools.Core.Tools
|
||||
|
||||
input = input.ToLowerInvariant();
|
||||
|
||||
List<char> invalidPath = Path.GetInvalidPathChars().ToList();
|
||||
List<char> invalidPath = [.. Path.GetInvalidPathChars()];
|
||||
return new string(input.Where(c => !invalidPath.Contains(c)).ToArray());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user