Don't strip color codes with ANSI escape code remover

This commit is contained in:
Mitchell Hashimoto 2012-02-05 13:29:21 +01:00
parent 6c1eafe00e
commit 3eff28ac0d
2 changed files with 0 additions and 2 deletions

View File

@ -15,7 +15,6 @@ module Vagrant
matchers = [/\e\[\d*[ABCD]/, # Matches things like \e[4D
/\e\[(\d*;)?\d*[HF]/, # Matches \e[1;2H or \e[H
/\e\[(s|u|2J|K)/, # Matches \e[s, \e[2J, etc.
/\e\[(\d*;){0,2}\d*m/, # Matches color escapes: \e[32m
/\e\[=\d*[hl]/, # Matches \e[=24h
/\e\[\?[1-9][hl]/, # Matches \e[?2h
/\e\[20[hl]/, # Matches \e[20l]

View File

@ -11,7 +11,6 @@ describe Vagrant::Util::ANSIEscapeCodeRemover do
it "should remove ANSI escape codes" do
klass.remove_ansi_escape_codes("\e[Hyo").should == "yo"
klass.remove_ansi_escape_codes("\e[38myo").should == "yo"
end
end