view config/initializers/ext_string.rb @ 175:52252ae4b580

Static tag because it's supposed to be the same across rsstweet installs
author nanaya <me@nanaya.pro>
date Tue, 02 Oct 2018 23:58:36 +0900
parents 61414d0a367b
children
line wrap: on
line source

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