lib/remote_syslog/reader.rb in remote_syslog-1.6.4.1 vs lib/remote_syslog/reader.rb in remote_syslog-1.6.5
- old
+ new
@@ -10,10 +10,10 @@
EventMachine::FileTail::FORCE_ENCODING = false
$VERBOSE = old_verbose
module RemoteSyslog
class Reader < EventMachine::FileTail
- COLORED_REGEXP = /\e\[(?:(?:[34][0-7]|[0-9]);){0,2}(?:[34][0-7]|[0-9])m/
+ COLORED_REGEXP = /\e\[(?:(?:[0-9]{1,3});){0,2}(?:[0-9]{1,3})m/
def initialize(path, destination_address, destination_port, options = {})
super(path, -1)
@parse_fields = options[:parse_fields]