Fix typos

This commit is contained in:
Jo-Be-Co
2026-05-10 00:37:02 +02:00
parent 6996fb1b81
commit 4ffcbeb1db

View File

@@ -241,7 +241,7 @@ public class ReplacementCharacters
if (CharIsPathInvalid(c)
|| invalidSlashes.Contains(c)
|| Replacements.Any(r => r.CharacterToReplace == c) /* Replace any other legal characters that they user wants. */ )
|| Replacements.Any(r => r.CharacterToReplace == c) /* Replace any other legal characters that the user wants. */)
{
char preceding = i > 0 ? fileName[i - 1] : default;
char succeeding = i < fileName.Length - 1 ? fileName[i + 1] : default;
@@ -265,7 +265,7 @@ public class ReplacementCharacters
if (
(
CharIsPathInvalid(c)
|| ( // Replace any other legal characters that they user wants.
|| ( // Replace any other legal characters that the user wants.
c != Path.DirectorySeparatorChar
&& c != Path.AltDirectorySeparatorChar
&& Replacements.Any(r => r.CharacterToReplace == c)