lib/awesome_bot/links.rb in awesome_bot-1.13.6 vs lib/awesome_bot/links.rb in awesome_bot-1.13.7
- old
+ new
@@ -9,10 +9,10 @@
.map do |x|
if x.include? ')]'
x.gsub /\)\].*/, ''
elsif (x.scan(')').count == 2) && (x.scan('(').count == 1)
x.gsub(/\)\).*/, ')')
- elsif x.scan(')').count > 0
+ elsif (x.scan(')').count > 0) && !(x.include? 'wikipedia')
x.gsub(/\).*/, '')
elsif x.include? '[' # adoc
x.gsub(/\[.*/, '')
elsif x[-1]=='.' || x[-1]==':'
x[0..-2]