Compare commits
2 commits
9ee7940a87
...
6655ad9900
Author | SHA1 | Date | |
---|---|---|---|
6655ad9900 | |||
c98fd8aa21 |
1 changed files with 1 additions and 4 deletions
|
@ -38,10 +38,7 @@ module FoodsoftArticleImport
|
|||
# Split string and remove beginning "
|
||||
matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main])
|
||||
|
||||
if matched.nil?
|
||||
puts "No regular article data for #{row[1]}: #{row[2]}"
|
||||
next
|
||||
else
|
||||
next if matched.nil?
|
||||
|
||||
name, units, price_high, price_low = matched.captures
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue