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.

Since:

Class Method Summary (collapse)

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.

Returns:

Since:

  • 2.0.0



8
9
10
# File 'lib/cinch/utilities/string.rb', line 8

def self.filter_string(string)
  string.gsub(/[\x00-\x1f]/, '')
end