# File lib/html/pipeline/@mention_filter.rb, line 32 def self.mentioned_logins_in(text, username_pattern = UsernamePattern) text.gsub MentionPatterns[username_pattern] do |match| login = Regexp.last_match(1) yield match, login, MentionLogins.include?(login.downcase) end end