Skip Menu |

This queue is for tickets about the Regexp-Common CPAN distribution.

Report information
The Basics
Id: 17974
Status: resolved
Priority: 0/
Queue: Regexp-Common

People
Owner: Nobody in particular
Requestors: husseinp [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.120
Fixed in: (no value)



Subject: Regexp::Common::number seems to have several mistakes
$RE{num}{decimal}->matches('asd.asd') returns true In fact so long as I have a period (or a valid radix) in the "number", it seems to return true.
On Fri Mar 03 21:49:58 2006, guest wrote: Show quoted text
> $RE{num}{decimal}->matches('asd.asd') returns true > > In fact so long as I have a period (or a valid radix) in the "number", > it seems to return true.
match() doesn't anchor the string. So, if there's a sub string that matches the pattern, the match succeeds. 'asd.asd' (used) to match because '.' matched. However, this is fixed in version 2011041601. But 'a1d.asd' will still match, because '1' matches.
Partially solved in 2011011601. The other part of the report isn't a bug.