Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] 4.04 Bugfix format check routines in Order.pm



******    message to minivend-users from "Ton Verhagen" <ton@verhagen.net>     ******

While studying the code of Order.pm I encountered a couple of
small 'typos' in the regex's
of:

Routine: _phone
Regex: /\d{3}.*\d{3}/   should be replaced by /^\d{3}\D*\d{3}$/
The 'old' one will match a phone number: 1234 123 1234 etc.

Routine: _phone_us
Regex: /\d{3}.*?\d{4}/     will match almost anything!
Replacement: /^\d{3}\D*\d{4}$/

Routine: _phone_us_with_area
Regex: /\d{3}\D*\d{3}\D*\d{4}/   should be replaced by
/^\D*\d{3}\D*\d{3}\D*\d{4}\D*$/
The old one will match a phone number: 1234 123 1234 etc.

Kind regards,

Ton


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: