Compare commits

..

No commits in common. "6655ad99001b2e176f147876e8a558eb3e29badd" and "9ee7940a87bee5df1db02c51c78d1339fa6a62f4" have entirely different histories.

View file

@ -38,7 +38,10 @@ module FoodsoftArticleImport
# Split string and remove beginning " # Split string and remove beginning "
matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main]) matched = row[2].gsub(/^\"/, "").gsub(/\"$/, "").match(REGEX[:main])
next if matched.nil? if matched.nil?
puts "No regular article data for #{row[1]}: #{row[2]}"
next
else
name, units, price_high, price_low = matched.captures name, units, price_high, price_low = matched.captures