From 91187a0db3c55b741eb2b7a20f21863c8728fd77 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Mon, 14 Jan 2013 12:43:52 +0100 Subject: [PATCH] Fix replace regex to include ESC characters --- lib/common_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common_helper.rb b/lib/common_helper.rb index 20a6cde5..08f2c573 100644 --- a/lib/common_helper.rb +++ b/lib/common_helper.rb @@ -150,7 +150,7 @@ end # Override for puts to enable logging def puts(o = "") # remove color for logging - temp = o.gsub(/\[\d+m(?.*)?\[0m/, '\k') + temp = o.gsub(/\e\[\d+m(?.*)?\e\[0m/, '\k') File.open(LOG_FILE, "a+") { |f| f.puts(temp) } super(o) end \ No newline at end of file