You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Upper-case file extensions (.REQIF, .REQIFZ, .ZIP) are rejected
#89
I have verified that I am running the latest version of the reqifsharp
I have searched open and closed issues to ensure it has not already been reported
Description
SupportedFileExtensionKindExtensions.ConvertPathToSupportedFileExtensionKind compares the extension case-sensitively, so Deserialize("Export.REQIF") (and Serialize to such a path) throws ArgumentException: only .reqif, .reqifz and .zip are supported file extensions. Tools on Windows often write upper-case extensions.
Compare the extension case-insensitively (StringComparison.OrdinalIgnoreCase).
Acceptance criteria
.reqif, .REQIF, .ReqIF, .reqifz, .REQIFZ and .ZIP map to the expected SupportedFileExtensionKind; other extensions still throw.
Steps to Reproduce
newReqIFDeserializer().Deserialize("Export.REQIF");// System.ArgumentException: only .reqif, .reqifz and .zip are supported file extensions. (Parameter 'fileUri')
Activity