Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
version: improve url-only version parsing #2827
add support for both styles prefixed with up to two characters,
I believe I made the regex sufficiently strict to prevent unwanted results, but if necessary it could be split into two or more pieces. Some of the regex syntax itself is also more esoteric so it may be desirable to modify them for that reason as well.
Originally begun as a fix for homebrew/core#14957.
I added tests, which is good, but did I add too many?