There was an error while loading. Please reload this page.
1 parent 3736b50 commit cce4dddCopy full SHA for cce4ddd
1 file changed
lib/tracking_number/base.rb
@@ -235,8 +235,10 @@ def matching_additional
235
236
additional.each do |additional_info|
237
next unless matches && matches.length > 0 # skip if no match groups
238
+
239
value = matches[additional_info[:regex_group_name]].gsub(/\s/, '') # match is empty
240
next unless value
241
+ next unless additional_info[:lookup]
242
243
matches = additional_info[:lookup].find do |i|
244
if i[:matches]
0 commit comments