Skip to content

Commit 8c6b47e

Browse files
Merge #207
207: fix wrong template checking r=Emilgardis a=Emilgardis bors r+ Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents 2758e44 + b137987 commit 8c6b47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ impl EmoteUrlBuilder<'_> {
620620

621621
/// Create the URL for this emote.
622622
pub fn render(self) -> String {
623-
if self.template != "ahttps://static-cdn.jtvnw.net/emoticons/v2/{{id}}/{{format}}/{{theme_mode}}/{{scale}}" {
623+
if self.template != "https://static-cdn.jtvnw.net/emoticons/v2/{{id}}/{{format}}/{{theme_mode}}/{{scale}}" {
624624
let custom_template = |builder: &EmoteUrlBuilder| -> Option<String> {
625625
let mut template = self.template.clone().into_owned();
626626
let emote_id_range = template.find("{{id}}")?;

0 commit comments

Comments
 (0)