Subject: | version::vpp _un_vstring heuristics are too strict, causing fatal exceptions |
version::vpp throws exception on version->new(v1.1).
The heuristic for _un_vstring looks for a minimum of *three* characters and thus fails to correctly find the magic vstring for a two-character version. I suggest at least dropping the check to *two* characters, or possibly reconsidering the heuristic entirely and always checking for magic unless the string matches an integer or decimal. With leading and trailing decimals possible, even something as crude as qr/^[0-9._]+$/ might be enough to know whether to do the expensive v-string check.