From 5388e7cb7bdcd74cff43003ef45033cfcae5b2d7 Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 1 Jul 2024 20:06:35 +0900 Subject: [PATCH] WIP --- fishctl/src/config/server.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fishctl/src/config/server.rs b/fishctl/src/config/server.rs index c491386..7b46177 100644 --- a/fishctl/src/config/server.rs +++ b/fishctl/src/config/server.rs @@ -190,6 +190,11 @@ fn validate_email_struct(value: &Email) -> Result<(), ValidationError> { fn validate_emoji(value: &str) -> Result<(), ValidationError> { let error = Err(ValidationError::new("not a Unicode emoji or :emoji_code:")); + // "star", "heart", "good" are explicitly allowed + if ["star", "heart", "good"].contains(&value) { + return Ok(()); + } + // check if `value` is a Unicode emoji if emojis::get(value).is_some() { return Ok(());