Created
February 3, 2015 21:47
-
-
Save wasi/f19de871ff91359cebd6 to your computer and use it in GitHub Desktop.
mentioned_logins_in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML::Pipeline::MentionFilter.mentioned_logins_in("hello @my friend") do |m, l, i| | |
"link_to(#{m[2..-1]})" | |
end | |
=> "hello link_to(my) friend" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment