generated from PlexSheep/rs-base
fix bug in parsing color name
This commit is contained in:
parent
75e7de904d
commit
3c1b0c1f5c
1 changed files with 5 additions and 5 deletions
10
src/app.rs
10
src/app.rs
|
@ -249,11 +249,11 @@ fn parse_color(s: &str) -> Result<Color, String> {
|
||||||
"gray" => Ok(Color::Gray),
|
"gray" => Ok(Color::Gray),
|
||||||
"darkgray" => Ok(Color::DarkGray),
|
"darkgray" => Ok(Color::DarkGray),
|
||||||
"lightred" => Ok(Color::LightRed),
|
"lightred" => Ok(Color::LightRed),
|
||||||
"lightGreen" => Ok(Color::LightGreen),
|
"lightgreen" => Ok(Color::LightGreen),
|
||||||
"lightYellow" => Ok(Color::LightYellow),
|
"lightyellow" => Ok(Color::LightYellow),
|
||||||
"lightBlue" => Ok(Color::LightBlue),
|
"lightblue" => Ok(Color::LightBlue),
|
||||||
"lightMagenta" => Ok(Color::LightMagenta),
|
"lightmagenta" => Ok(Color::LightMagenta),
|
||||||
"lightCyan" => Ok(Color::LightCyan),
|
"lightcyan" => Ok(Color::LightCyan),
|
||||||
"white" => Ok(Color::White),
|
"white" => Ok(Color::White),
|
||||||
s => {
|
s => {
|
||||||
let cap = reg
|
let cap = reg
|
||||||
|
|
Reference in a new issue