diff --git a/lib/common_helper.rb b/lib/common_helper.rb index 08f2c573..35f96e6b 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(/\e\[\d+m(?.*)?\e\[0m/, '\k') + temp = o.gsub(/\e\[\d+m(.*)?\e\[0m/, '\1') File.open(LOG_FILE, "a+") { |f| f.puts(temp) } super(o) end \ No newline at end of file