Sha256: 29467198e8ac3ba2231a36a79d73381caa776ba586f5e9b881617a9eacca080b

Contents?: true

Size: 452 Bytes

Versions: 25

Compression:

Stored size: 452 Bytes

Contents

# In order to decode language_table.txt

reg_exps = [
  /(\w+)\s+-?((\w|\s|')+)?\s+(\w+)\s+((\w+|-)+)/,
  /(\w+)\s+((\w|\s|')+)\s+(\w+)/,
  /(\w+)\s+((\w|\s|')+)/
  /(\w+)/,

  /(\w+)\s+-?((\w|\s|')+)?\s+(\w+)\s+((\w+|-)+)\s+:?\s+((\w|\s|')+)/,
  /(\w+)\s+((\w|\s|')+)\s+(\w+)\s+:?\s+((\w|\s|')+)/,
  /(\w+)\s+((\w|\s|')+)\s+:?\s+((\w|\s|')+)/
  /(\w+)\s+:?\s+((\w|\s|')+)/
]

# Find regexp the best matches line. Discard any matching of a single char.

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
world-flags-0.4.1 sandbox/languages_country_extract.rb
world-flags-0.4.0 sandbox/languages_country_extract.rb
world-flags-0.3.6 sandbox/languages_country_extract.rb
world-flags-0.3.5 sandbox/languages_country_extract.rb
world-flags-0.3.4 sandbox/languages_country_extract.rb