incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: Other locales for Flex SDK
Date Tue, 14 Feb 2012 21:12:55 GMT
Hi,

Just as the current Phone validator assumes all digits are valid for a first step we could
as well. Ignoring digits the patterns become:
(###) #### ####
(####) ### ####
(####) ######
(#####) #####
(######) ####
(######) #####

(I may of missed one)

It wouldn't be too hard to change the code so that it could use this from the resource bundle:
phoneNumberFormat=(###) ### ####, (####) ######, (####) ######, ...

Another idea would be to add regular regular expression support. to the validator class

Thanks,
Justin
Mime
View raw message