Skip Menu |

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

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

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

Bug Information
Severity: Normal
Broken in: 2.122
Fixed in: (no value)



Subject: Synopsis in POD is invalid for Regexp::Common::CC
while (<>) { /^$RE{zip}{Visa}$/ and print "Visa card number\n"; } Should really be: while (<>) { /^$RE{CC}{Mastercard}$/ and print "Mastercard card number\n"; } The changes are 'zip' to 'CC' and 'Visa' to 'Mastercard.' It looks like the more difficult CC regexs were skipped for now (according to the code comments) hence the reason I changed Visa to Mastercard... Also, it would be nice if the CC number types this module supports were listed in the documentation so users don't have to dig into the code to figure this out. I believe the complete list is: 'Mastercard', 'Amex', 'Diners Club', 'Discover'
Thanks, this will be fixed in the next release.