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