Version 0.03 of our open source Perl module Business::DK::Phonenumber have been uploaded to CPAN.
The release contains a single bug fix addressing a serious bug in the primary regular expression used in the validation subroutine.
The problem was a simple \b (word boundary), which should have been a \z (end of string). We have chosen to use \A (beginning of string) and \z over ^ and $, which might bear other meaning is regular expressions. The \b bug is expected to be a simple typo.
The validation was generally working as expected, but the \b would allow invalid strings resembling phone number to pass as valid.
Updating is recommended if you are using Business::DK::Phonenumber or any of it’s modules.
Thanks to Michael Zedeler locating and reporting the issue.
Business::DK::Phonenumber is distributed under the Artistic License and can be downloaded from your local CPAN mirror or via: search.cpan.org.