view config/initializers/ext_string.rb @ 239:c800506ae799 legit-client

More varied cache period for less chance of hitting rate limit
author nanaya <me@nanaya.net>
date Sat, 15 Jul 2023 01:59:44 +0900
parents 61414d0a367b
children
line wrap: on
line source

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