[
https://issues.apache.org/jira/browse/FLEX-28933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-28933.
----------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.9.0
Use PostCodeValidator instead:
var pcv:PostCodeValidator = new PostCodeValidator();
pcv.format = "ANA NAN";
var result:ValidationResultEvent = pcv.validate("A0A0A");
This give a result of wrongLength and wrongFormat.
> ZipCodeValidator does not fail "A0A0A" when set to CANADA_ONLY
> --------------------------------------------------------------
>
> Key: FLEX-28933
> URL: https://issues.apache.org/jira/browse/FLEX-28933
> Project: Apache Flex
> Issue Type: Bug
> Components: Validators
> Affects Versions: Adobe Flex SDK 4.5.1 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Other (specify version)
> Language Found: English
> Reporter: Adobe JIRA
> Labels: EasyFix
> Fix For: Apache Flex 4.9.0
>
>
> Steps to reproduce:
> 1. Create ZipCodeValidator with TextInput as source
> 2. Set validator.domain = ZipCodeValidatorDomainType.CANADA_ONLY
> 3. Enter "A0A0A" into TextInput
>
> Actual Results:
> "A0A0A" passes validation
>
> Expected Results:
> "A0A0A" fails validation due to invalid length
>
> Workaround (if any):
> none
>
> using Chrome browser
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira