module ValidatesZipcode::CldrRegexpCollection

Constants

ZIPCODES_REGEX

Public Instance Methods

regexp_for_country_alpha2(alpha2) click to toggle source
# File lib/validates_zipcode/cldr_regex_collection.rb, line 253
def regexp_for_country_alpha2(alpha2)
  alpha2 = alpha2.to_s.upcase.to_sym

  ZIPCODES_REGEX[alpha2]
end