lib/awesome_bot/links.rb in awesome_bot-1.7.1 vs lib/awesome_bot/links.rb in awesome_bot-1.8.0
- old
+ new
@@ -4,10 +4,10 @@
class << self
def links_filter(list)
list.reject { |x| x.length < 9 }
.map do |x|
- x.gsub(/'.*/, '').gsub(/,.*/, '').gsub('/:', '/')
+ x.gsub(',','%2c').gsub(/'.*/, '').gsub(/,.*/, '').gsub('/:', '/')
end
.map do |x|
if x.include? ')]'
x.gsub /\)\].*/, ''
elsif (x.scan(')').count == 2) && (x.scan('(').count == 1)