| Class | Slack::Notifier::Util::LinkFormatter |
| In: |
lib/slack-notifier/util/link_formatter.rb
|
| Parent: | Object |
| 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 |
| formats | [R] |