class Card::Content::Chunk::HostUri

Constants

COUNTRY
GENERIC
HOST
PREPEND_STR

TLDS = “(?:#{GENERIC})”

TLDS

These are needed otherwise HOST will match almost anything

Public Instance Methods

process_text() click to toggle source

removes the prepended string from the unchanged match text

# File lib/card/content/chunk/uri.rb, line 143
def process_text
  @text = @text.sub(%r{^http://}, "")
end