Skip to content

Return unknown package when not SemVer

What does this MR do and why?

This merge request fixes an issue with license scanning, which meant that the default version was displayed when an invalid string was provided. It achieves this by checking to see if the input string is valid SemVer, only responding with the default version if it complies with the SemVer spec.

Related Issues

Add valid? function to semver_dialects gem in order to check semantic versions

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Philip Cunningham

Merge request reports