Skip Menu |

This queue is for tickets about the version CPAN distribution.

Report information
The Basics
Id: 93715
Status: resolved
Priority: 0/
Queue: version

People
Owner: Nobody in particular
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



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.
Fixed. Will be in 0.9909 (probably after Perl v5.20.0 ships).
On 2014-04-17 14:16:36, JPEACOCK wrote: Show quoted text
> Fixed. Will be in 0.9909 (probably after Perl v5.20.0 ships).
Not released yet; reopening to 'patched' status for better visibility.
Resolved in 0.9910 (coming soon)