Module: PickleI18n::Parser

Defined in:
lib/pickle_i18n/parser.rb

Instance Method Summary collapse

Instance Method Details

#capture_key_and_value_in_fieldObject



7
8
9
10
# File 'lib/pickle_i18n/parser.rb', line 7

def capture_key_and_value_in_field
  # "(?:(\\w+): #{capture_value})"
  "(?:\s*([^:]+): #{capture_value})"
end

#match_fieldObject



2
3
4
5
# File 'lib/pickle_i18n/parser.rb', line 2

def match_field
  # "(?:\\w+: #{match_value})"
  "(?:\s*[^:]+: #{match_value})"
end