lib/awesome_bot/links.rb in awesome_bot-1.18.0 vs lib/awesome_bot/links.rb in awesome_bot-1.19.0

- old
+ new

@@ -16,9 +16,11 @@ x.gsub(',','%2c').gsub(/'.*/, '').gsub(/,.*/, '') end .map do |x| if x.include? ')]' x.gsub /\)\].*/, '' + elsif (x.scan(')').count == 1) && (x.scan('(').count == 1) + x elsif (x.scan(')').count == 2) && (x.scan('(').count == 1) x.gsub(/\)\).*/, ')') elsif (x.scan(')').count > 0) if (x.include? 'wikipedia') if (x.scan(')').count >= 1) && (x.scan('(').count == 0)