ParseTolerant allows for certain version specifications that do not strictly adhere to semver specs to be parsed by this library. It does so by normalizing versions before passing them to parse. It currently trims spaces, removes a "v" prefix, and adds a 0 patch number to versions with only major and minor components specified.
ParseTolerant allows for certain version specifications that do not strictly adhere to semver specs to be parsed by this library. It does so by normalizing versions before passing them to parse. It currently trims spaces, removes a "v" prefix, and adds a 0 patch number to versions with only major and minor components specified.