Sha256: 5c0a8715a02663500f6973d4ade4308e24941d25771e1e9cd9f1776e8c0ddf74
Contents?: true
Size: 282 Bytes
Versions: 2
Compression:
Stored size: 282 Bytes
Contents
module Pedantic::Uris def self.included(base) base.processors :remove_uris end def remove_uris(string) [ /https?:\/\/\S+/, /([\w\.])+\.(com|co|net|org|info)(\.\w+)?/ ].each { |pattern| string.gsub!(pattern, '') } string end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pedantic-0.1.1 | lib/pedantic/uris.rb |
pedantic-0.1.0 | lib/pedantic/uris.rb |