UK Validate Diff (Again)

From: Date: Wed, 25 Feb 2004 22:02:25 +0000
Subject: UK Validate Diff (Again)
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25895@lists.php.net to get a copy of this message
Hi, Here's another diff for Validate_UK, this time for postcode. I noticed in Michael Dransfield's comments that he intended to add in "strong" support for check against a list of postcodes. I'm not sure if this list is supposed to be exhaustive, but I've modified the code to change the regex if the strong parameter is set to true. This regex takes into account postcodes that do not occur in the Royal Mail list, by excluding unused letters in certain locations. There's also a minor CS change -- I "tainted" the source with a couple of tabs in the ni function, so these have now been replaced with spaces. Regards, David

Attachment: [text/x-patch] UK.php.diff
« previous php.pear.dev (#25895) next »