Skip to content

Instantly share code, notes, and snippets.

@LTe
Created July 24, 2012 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LTe/3168808 to your computer and use it in GitHub Desktop.
Save LTe/3168808 to your computer and use it in GitHub Desktop.
def self.normalize(name)
if name =~ /^#?<3/
# Special case for love, because the world needs more love.
'<3'
elsif name
name.gsub(/[^#{self.tag_text_regexp}]/, '').downcase
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment