diff --git a/src/sh.rs b/src/sh.rs index 41f42e7..0db3ee2 100644 --- a/src/sh.rs +++ b/src/sh.rs @@ -3,7 +3,7 @@ use regex::Regex; lazy_static! { // global regex constant - static ref HEX: Regex = Regex::new(r"^[a-f\d]{6}$").unwrap(); + static ref HEX: Regex = Regex::new(r"^[a-fA-F\d]{6}$").unwrap(); } fn code(color: &str, prefix: &str, light_prefix: &str) -> Option {