view config/initializers/ext_string.rb @ 219:17461f7682a2

One client for everyone
author nanaya <me@nanaya.pro>
date Thu, 27 May 2021 02:28:18 +0900
parents 61414d0a367b
children
line wrap: on
line source

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