view config/initializers/ext_string.rb @ 190:7b1bdf697063

Add direct link for retweet
author nanaya <me@nanaya.pro>
date Sat, 27 Jul 2019 13:57:48 +0900
parents 61414d0a367b
children
line wrap: on
line source

class String
  def printable
    gsub(/[^\n[:print:]]/, '')
  end
end