When running the tests, I see that the extract character in hmagent pushes the colon way out—is this why?
$ go test
black : black
red : red
green : green
yellow : yellow
blue : blue
magenta : magenta
cyan : cyan
white : white
hblack : hblack
hred : hred
hgreen : hgreen
hyellow : hyellow
hblue : hblue
hmagenta : hmagenta
hcyan : hcyan
hwhite : hwhite
black : black
red : red
green : green
yellow : yellow
blue : blue
magenta : magenta
cyan : cyan
white : white
hblack : hblack
hred : hred
hgreen : hgreen
hyellow : hyellow
hblue : hblue
hmagenta : hmagenta
hcyan : hcyan
hwhite : hwhite
...
And I assume magent is truncated to match hmagenta.
In
color_test.go
, lines 30 and 38, the colors are listed asmagent
andhmagent
, instead ofmagents
andhmagenta
. https://github.com/fatih/color/blob/4cad7da0669c843889134a00f32b3e038ea79ac9/color_test.go#L30 https://github.com/fatih/color/blob/4cad7da0669c843889134a00f32b3e038ea79ac9/color_test.go#L38Is this a mistake, or is it intentional?
When running the tests, I see that the extract character in
hmagent
pushes the colon way out—is this why?And I assume
magent
is truncated to matchhmagenta
.