view config/initializers/ext_string.rb @ 252:151bc6d97d39

Include pinned tweet
author nanaya <me@nanaya.net>
date Tue, 17 Oct 2023 00:04:11 +0900
parents 61414d0a367b
children
line wrap: on
line source

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