Compare commits

...

2 commits

Author SHA1 Message Date
6655ad9900 add next if end 2023-01-20 14:02:15 +01:00
c98fd8aa21 add next if 2023-01-20 14:00:18 +01:00

View file

@ -38,10 +38,7 @@ 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])
if matched.nil? next 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