Skip to content

Commit

Permalink
Fix Issue #282 by removing '.' from invalid characters list
Browse files Browse the repository at this point in the history
This is actually a valid character name, at least in 2019, so I'm just
going to allow it for all versions. User beware (assuming it was actually
ever an illegal character at all).
  • Loading branch information
edwardrowe committed Jul 18, 2021
1 parent 2301b81 commit 7ed1522
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public bool FinalNameContainsInvalidCharacters
return false;
}

var invalidCharacters = new char[] { '?', '.', '/', '<', '>', '\\', '|', '*', ':', '"' };
var invalidCharacters = new char[] { '?', '/', '<', '>', '\\', '|', '*', ':', '"' };
return this.RenameResultSequence.NewName.IndexOfAny(invalidCharacters) >= 0;
}
}
Expand Down

0 comments on commit 7ed1522

Please sign in to comment.