polyrex 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex.rb +1 -1
- 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
|