dynarex 0.6.3 → 0.6.4
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
@@ -66,7 +66,7 @@ EOF
|
|
66
66
|
format_mask = XPath.first(@doc.root, 'summary/format_mask/text()').to_s
|
67
67
|
t = format_mask.to_s.gsub(/\[!(\w+)\]/, '(.*)').sub(/\[/,'\[').sub(/\]/,'\]')
|
68
68
|
lines = buffer.split(/\r?\n|\r(?!\n)/).map {|x|x.match(/#{t}/).captures}
|
69
|
-
fields = format_mask.scan(/\[!(\w+)\]/).flatten.map(&:to_sym)
|
69
|
+
fields = format_mask.scan(/\[!(\w+)\]/).flatten.map(&:to_sym)
|
70
70
|
|
71
71
|
a = lines.map do|x|
|
72
72
|
created = Time.now.to_s
|