Skip to content

Instantly share code, notes, and snippets.

@wasi
Created February 3, 2015 21:47
Show Gist options
  • Save wasi/f19de871ff91359cebd6 to your computer and use it in GitHub Desktop.
Save wasi/f19de871ff91359cebd6 to your computer and use it in GitHub Desktop.
mentioned_logins_in
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