# File lib/html/pipeline/@mention_filter.rb, line 106 def mention_link_filter(text, _base_url = '/', info_url = nil, username_pattern = UsernamePattern) self.class.mentioned_logins_in(text, username_pattern) do |match, login, is_mentioned| link = if is_mentioned link_to_mention_info(login, info_url) else link_to_mentioned_user(login) end link ? match.sub("@#{login}", link) : match end end