Module: Cinch::Utilities::String Private
- Defined in:
- lib/cinch/utilities/string.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary (collapse)
-
+ (String) filter_string(string)
private
Class Method Details
+ (String) filter_string(string)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
TODO:
Handle mIRC color codes more gracefully.
8 9 10 |
# File 'lib/cinch/utilities/string.rb', line 8 def self.filter_string(string) string.gsub(/[\x00-\x1f]/, '') end |