lib/awesome_bot/links.rb in awesome_bot-1.7.0 vs lib/awesome_bot/links.rb in awesome_bot-1.7.1

- old
+ new

@@ -13,9 +13,11 @@ x.gsub /\)\].*/, '' elsif (x.scan(')').count == 2) && (x.scan('(').count == 1) x.gsub(/\)\).*/, ')') elsif x.scan(')').count > 0 x.gsub(/\).*/, '') + elsif x.include? '[' # adoc + x.gsub(/\[.*/, '') else x end end end