view config/initializers/ext_string.rb @ 247:e181716b8dc8

Fix parameter name
author nanaya <me@nanaya.net>
date Mon, 17 Jul 2023 04:27:19 +0900
parents 61414d0a367b
children
line wrap: on
line source

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