stevespringett / cvss-calculator

A Java library for calculating CVSSv2 and CVSSv3 scores and vectors
Apache License 2.0
36 stars 21 forks source link

Fixed regex matching issue. #2

Closed nthrasher closed 5 years ago

nthrasher commented 5 years ago

The tests I added for the temporal scoring were not rigorous enough to catch a bug I introduced when using the "fromVector(String vector)" method on the Cvss class.

I had failed to properly escape a character in the regex. Once I found the issue and corrected it I discovered more work needed to be done to make sure all of the existing code remained backward compatible.

I apologize for the (rather embarrasing) oversight and the inconvenience.

stevespringett commented 5 years ago

Thanks for the PR again. Nice cleanup. These changes have been incorporated into v1.2.1 which was just published to Maven Central. It should be available for use shortly.