lib/phonelib/phone_analyzer_helper.rb
# defines if to validate against single country or not
defines if to validate against single country or not
defines if to validate against single country or not
def passed_country(country)
      code = country_prefix(country)
      if Core::PLUS_SIGN == @original[0] && code && !sanitized.start_with?(code)
        country = nil
      end
      country
    end
def passed_country ( country ) code = country_prefix ( country ) if Core :: PLUS_SIGN == @original [ 0 ] && code && ! sanitized . start_with? ( code ) country = nil end country end
defines if to validate against single country or not
defines if to validate against single country or not
# in case number passed with + but it doesn't start with passed # country prefix
country
<not_specific>