SCXWTGGE7L6CUEG2X5THCYUNFUOAEVHHDYEAUEGO76H3FUJTCF5AC
#[cfg(feature = "regex")]
pub fn replace_all<'a>(&self, message: &'a str) -> Cow<'a, str> {
lazy_static! {
static ref RE: Regex = Regex::new(r"[^,.\s]*").unwrap();
}
RE.replace_all(message, |w: &Captures| {
self.to_string(w.get(0).unwrap().as_str())
.unwrap_or_else(|| w.get(0).unwrap().as_str().to_owned())
})
}
let em = EmoteMapper::from_path(&PathBuf::from("examples/twitch_emotes.csv")).unwrap().emote_width(2);
let messages = vec!["modproHi, how are you doing?", "<3, great", "tggleBoss Kappa xD"];
let em = EmoteMapper::from_path(&PathBuf::from("examples/twitch_emotes.csv"))
.unwrap()
.emote_width(2);