lib/parliament/utils/services/markdown_converter.rb in parliament-utils-0.8.4 vs lib/parliament/utils/services/markdown_converter.rb in parliament-utils-0.8.5

- old
+ new

@@ -11,10 +11,10 @@ # @param link_type [Symbol] The link type # @return template [String] Original link text or HTML string replacement # def autolink(link, link_type) if link_type == :url - return parliament_live_video_embed(link) if link.match(/parliamentlive.tv\/event\/index\/[a-z0-9-]{36}/i) + return parliament_live_video_embed(link) if link =~ /parliamentlive.tv\/event\/index\/[a-z0-9-]{36}/i end link # call super instead if we actually want autolinking end