view config/initializers/ext_string.rb @ 232:4caedeaeea69

Update gems
author nanaya <me@nanaya.net>
date Mon, 16 Jan 2023 16:23:36 +0900
parents 61414d0a367b
children
line wrap: on
line source

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