This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct parsing of 'Format Version' header in sln files
Prior to this change the exception on line 138 could not be thrown, as far as I can tell. The reason for this is that`HeaderPrefix` contained a trailing space, and we had verified that `line` (trimmed) started with `HeaderPrefix`. Hence `line` must contain something more than `HeaderPrefix` otherwise the tailing space would have been removed, so the length of `line` could not be less than or equal to the length of `HeaderPrefix`. Added and changed tests to ensure that both exceptions regarding `FormatVersion` are thrown. Fixes #5978
- Loading branch information
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters