use case insensitive

This commit is contained in:
Edward Shen 2020-05-02 03:18:11 -04:00
parent 408cd38d4c
commit 8de3dd8d0e
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -6,7 +6,7 @@ use serenity::model::channel::Message;
use serenity::prelude::{Context, EventHandler};
lazy_static! {
static ref REGEX: Regex = Regex::new("(?:[fF][uU]){3,}").unwrap();
static ref REGEX: Regex = Regex::new("(?i:fu){3,}").unwrap();
}
pub(crate) struct FufufuResponder;