polyrex 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/polyrex.rb +1 -1
  2. metadata +1 -1
data/lib/polyrex.rb CHANGED
@@ -108,7 +108,7 @@ class Polyrex
108
108
  a = t.reverse.split(/(?=\)\*\.\()/).reverse.map &:reverse
109
109
 
110
110
  patterns = tail_map(a)
111
- pattern = patterns.detect {|x| line.match(/#{x}/)}.join
111
+ pattern = patterns.detect {|x| line.match(/#{x.join}/)}.join
112
112
  field_values = line.match(/#{pattern}/).captures
113
113
  field_values += [''] * (@field_names.length - field_values.length)
114
114
  #field_values = line.match(/#{t}/).captures
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors: []
7
7