view config/initializers/ext_string.rb @ 161:c2e9d3a36bde

Improved id check
author nanaya <me@nanaya.pro>
date Fri, 03 Aug 2018 02:01:32 +0900
parents 61414d0a367b
children
line wrap: on
line source

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