diff --git a/src/utils/string_utils.rs b/src/utils/string_utils.rs index 33d1dbb..41fb281 100644 --- a/src/utils/string_utils.rs +++ b/src/utils/string_utils.rs @@ -104,6 +104,6 @@ pub fn check_emoji_code(shortcut: &str) -> bool { /// assert_eq!(check_emoji_code("UUFF00"), false); /// ``` pub fn check_html_color(color: &str) -> bool { - let r = Regex::new(r"^:[A-F0-9]{6}:$").unwrap(); + let r = Regex::new(r"^[A-F0-9]{6}$").unwrap(); r.is_match(color) } \ No newline at end of file