Opened 13 years ago

Closed 12 years ago

#2528 closed enhancement (fixed)

Add Canadian validation Support

Reported by: kindsol@… Owned by: dante
Priority: high Milestone: 0.9
Component: Validate Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

I had to add support to validate Canadian Postal Codes, Provence Abbreviations, and Social Insurance Numbers (like SSN).

If I can attach a file to this ticket I will submit this code as a contribution. If I cannot attach it to this ticket feel free to email me and I will send it to you.

This is a fairly simple and safe addition to the code base.

Cheers!

-Sol

Attachments (4)

Canada.zip (7.6 KB) - added by guest 13 years ago.
Canadan.patch (3.3 KB) - added by kindsol@… 13 years ago.
SVN patch with Postal code RegEx? fix
Canada_v2.patch (3.6 KB) - added by guest 13 years ago.
Updated patch to support ANA NAN postal code format
Canada_v2.2.patch (3.6 KB) - added by kindsol@… 13 years ago.
Updated patch to support ANA NAN postal code format

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by guest

Attachment: Canada.zip added

comment:1 Changed 13 years ago by Adam Peller

Milestone: 0.9
Owner: changed from anonymous to Adam Peller

comment:2 Changed 13 years ago by Adam Peller

Component: GeneralValidate

Changed 13 years ago by kindsol@…

Attachment: Canadan.patch added

SVN patch with Postal code RegEx? fix

comment:3 Changed 13 years ago by Adam Peller

According to wikipedia,

Canadian postal codes are in the format ANA NAN, where A is a letter and N is a digit, with a space separating the third and fourth characters.

Changed 13 years ago by guest

Attachment: Canada_v2.patch added

Updated patch to support ANA NAN postal code format

Changed 13 years ago by kindsol@…

Attachment: Canada_v2.2.patch added

Updated patch to support ANA NAN postal code format

comment:4 Changed 12 years ago by Adam Peller

Owner: changed from Adam Peller to dante

need to figure out how to organize all of this in a dojox library.

comment:5 Changed 12 years ago by dante

Status: newassigned

will merge this into dojox.validate and/or dojox.regexp dojox.validate.regexp subclass 'keep dojox clean'?

comment:6 Changed 12 years ago by dante

Resolution: fixed
Status: assignedclosed

(In [9618]) initial port of dojo.validate to dojox.validate - added Canadia validation support which fixes #2528 ... attn: ttrenka, re: dojox.regexp - port of remaining dojo.regexp methods that did not go into dojo core (needed for validation). all tests pass, but want to cleanup / augment more.

Note: See TracTickets for help on using tickets.