dynarex 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dynarex.rb +1 -1
- metadata +1 -1
data/lib/dynarex.rb
CHANGED
@@ -88,7 +88,7 @@ EOF
|
|
88
88
|
i = XPath.match(@doc.root, 'records/*/attribute::id').max_by(&:value).to_s.to_i
|
89
89
|
t = @format_mask.to_s.gsub(/\[!(\w+)\]/, '(.*)').sub(/\[/,'\[').sub(/\]/,'\]')
|
90
90
|
lines = buffer.split(/\r?\n|\r(?!\n)/).map {|x|x.match(/#{t}/).captures}
|
91
|
-
fields = @format_mask.scan(/\[!(\w+)\]/).flatten.map(&:to_sym)
|
91
|
+
fields = @format_mask.to_s.scan(/\[!(\w+)\]/).flatten.map(&:to_sym)
|
92
92
|
a = lines.map do|x|
|
93
93
|
created = Time.now.to_s
|
94
94
|
|