Class Slack::Notifier::Util::LinkFormatter
In: lib/slack-notifier/util/link_formatter.rb
Parent: Object

Methods

format   formatted   new  

Constants

HTML_PATTERN = %r{ <a (?:.*?) href=['"](.+?)['"] (?:.*?)> (.+?) </a> }x   rubular.com/r/19cNXW5qbH
VALID_PATH_CHARS = '\w\-\.\~\/\?\#\='   the path portion of a url can contain these characters
MARKDOWN_PATTERN = %r{ \[ ([^\[\]]*?) \] \( ((https?://.*?) | (mailto:.*?)) \) (?! [#{VALID_PATH_CHARS}]* \) ) }x   Attempt at only matching pairs of parens per the markdown spec spec.commonmark.org/0.27/#links

rubular.com/r/y107aevxqT

Attributes

formats  [R] 

Public Class methods

Public Instance methods

rubocop:disable Lint/RescueWithoutErrorClass

[Validate]