lib/phonelib/phone_analyzer_helper.rb
# Returns regex for type with special types if needed
#
# ==== Attributes
#
# * +data+ - country types data for single type
# * +type+ - possible or valid regex type needed
Returns regex for type with special types if needed
Attributes

+data+ - country types data for single type
+type+ - possible or valid regex type needed
Returns regex for type with special types if needed Attributes + data + - country types data for single type + type + - possible or valid regex type needed
def type_regex(data, type)
      regex = [data[type]]
      if Phonelib.parse_special && data[Core::SHORT] && data[Core::SHORT][type]
        regex << data[Core::SHORT][type]
      end
      regex.join('|')
    end
def type_regex ( data , type ) regex = [ data [ type ] ] if Phonelib . parse_special && data [ Core :: SHORT ] && data [ Core :: SHORT ] [ type ] regex << data [ Core :: SHORT ] [ type ] end regex . join ( '|' ) end
Returns regex for type with special types if needed
 Attributes
Returns regex for type with special types if needed Attributes
data
<not_specific>
type
<not_specific>