CAPostalCodeField made more forgiving of input format
|Reported by:||Doug Harris||Owned by:||nobody|
|Severity:||Normal||Keywords:||ca postal code|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Similar to the work done in  for #5670 for UKPostcodeField, this change is more forgiving of Canadian postal code input. Uppercase, lowercase, with or without a space in between the two segments.
The clean method returns a nice, clean version -- enter 'K1A 0A9', 'k1a 0A9', 'k1a0a9', or even ' k1A 0A9 ' and it will return the standard form: 'K1A 0A9'.
Patch contains code change and additions to regression tests.
Change History (9)
comment:3 Changed 6 years ago by
|Patch needs improvement:||set|