Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(proxy): remove 🌱 from whitelist (#338)
Browse files Browse the repository at this point in the history
* Remove sprout emoji from whitelist
  • Loading branch information
rudolfs committed May 4, 2020
1 parent 04e4892 commit d17e348
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions proxy/src/avatar.rs
Expand Up @@ -21,7 +21,7 @@ const EMOJIS: &[&str] = &[
"πŸ¦„", "🐝", "πŸ›", "πŸ¦‹", "🐌", "🐚", "🐞", "🐜", "πŸ¦—", "πŸ•·", "πŸ¦‚", "🐒", "🐍", "🦎","πŸ‹",
"πŸ¦–", "πŸ¦•", "πŸ™", "πŸ¦‘", "🦐", "πŸ¦€", "🐑", "🐠", "🐟", "🐬", "🐳", "πŸ‹", "🦈", "🐊", "πŸ…", "πŸ†",
"πŸ¦“", "🦍", "🐘", "🦏", "πŸ¦›", "πŸͺ", "🐫", "πŸ¦’", "πŸƒ", "πŸ‚", "πŸ„", "🐎", "πŸ–", "🐏", "πŸ‘", "🐐",
"🦌", "πŸ•", "🐩", "🐈", "πŸ“", "πŸ¦ƒ", "β˜ƒοΈ", "πŸ‰", "🐲", "🌡", "πŸŽ„", "🌲", "🌳", "🌴", "🌱", "🌿",
"🦌", "πŸ•", "🐩", "🐈", "πŸ“", "πŸ¦ƒ", "β˜ƒοΈ", "πŸ‰", "🐲", "🌡", "πŸŽ„", "🌲", "🌳", "🌴", "🌿",
"☘️", "πŸ€", "🎍", "πŸŽ‹", "πŸƒ", "πŸ‚", "🍁", "πŸ„", "🌾", "πŸ’", "🌷", "🌹", "πŸ₯€", "🌺", "🌸", "🌼",
"🌻", "🌞", "🌝", "🌎", "🌍", "🌏", "πŸ’«", "⭐️", "🌟", "✨", "⚑️", "β˜„οΈ", "πŸ’₯", "πŸ”₯", "🌈", "β˜€οΈ",
"⛅️", "☁️", "🌦", "🌩", "🌨", "❄️", "πŸ’¨", "πŸ’§", "πŸ’¦", "β˜”οΈ", "β˜‚οΈ", "🌊", "🍏", "🍎", "🍐", "🍊",
Expand Down Expand Up @@ -234,7 +234,7 @@ mod test {
assert_eq!(
Avatar::from("cloudhead", Usage::Identity),
Avatar {
emoji: Emoji("🚑"),
emoji: Emoji("🏍"),
background: Color::new(24, 105, 216)
}
);
Expand All @@ -247,8 +247,8 @@ mod test {

#[test]
fn test_avatar_emoji() {
assert_eq!(generate_emoji("cloudhead", Usage::Identity), Emoji("🚑"));
assert_eq!(generate_emoji("radicle", Usage::Org), Emoji("πŸ“"));
assert_eq!(generate_emoji("cloudhead", Usage::Identity), Emoji("🏍"));
assert_eq!(generate_emoji("radicle", Usage::Org), Emoji("πŸ”₯"));
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions proxy/src/http/identity.rs
Expand Up @@ -237,7 +237,7 @@ impl ToDocumentedType for avatar::Avatar {
"emoji".into(),
document::string()
.description("String containing the actual emoji codepoint to display")
.example("πŸ’‘"),
.example("🐽"),
);

document::DocumentedType::from(properties)
Expand Down Expand Up @@ -362,7 +362,7 @@ mod test {
"g": 112,
"b": 90,
},
"emoji": "πŸ’‘",
"emoji": "🐽",
},
"id": "123abcd.git",
"metadata": {
Expand Down
6 changes: 3 additions & 3 deletions proxy/src/http/source.rs
Expand Up @@ -964,7 +964,7 @@ mod test {
"g": 105,
"b": 216,
},
"emoji": "🚑",
"emoji": "🏍",
},
},
"branches": [ "dev", "master", "rad/contributor", "rad/project" ],
Expand All @@ -986,7 +986,7 @@ mod test {
"g": 186,
"b": 214,
},
"emoji": "βš™\u{fe0f}",
"emoji": "πŸ›·",
},
},
"branches": [ "dev", "master", "rad/contributor", "rad/project" ],
Expand All @@ -1008,7 +1008,7 @@ mod test {
"g": 157,
"b": 169,
},
"emoji": "🚜",
"emoji": "πŸ—»",
},
},
"branches": [ "dev", "master", "rad/contributor", "rad/project" ],
Expand Down

0 comments on commit d17e348

Please sign in to comment.