Sha256: ac7aede59689e1f73685a10b5697c6daf14144014b7a3c934ab2446279dca782
Contents?: true
Size: 351 Bytes
Versions: 6
Compression:
Stored size: 351 Bytes
Contents
# Get and filter links module AwesomeBot require 'uri' class << self def links_filter(list) list.reject { |x| x.length < 9 } .map do |x| x.gsub(/\).*/, '').gsub(/'.*/, '').gsub(/,.*/, '').gsub('/:', '/') end end def links_find(content) URI.extract(content, /http()s?/) end end # class end
Version data entries
6 entries across 6 versions & 1 rubygems