made up for the missing forward check

This commit is contained in:
jude committed 2021-01-18 19:32:19 +00:00
1 parent 43ba899c7a
commit 88976dc244
2 files changed
+57 -29

No files matched your search

+7 -2
View File
@@ -54,8 +54,13 @@ lazy_static! {
)
.unwrap();
pub static ref REGEX_NATURAL_COMMAND: Regex = Regex::new(
r#"(?P<time>.*?) (?:send|say) (?P<msg>.*?)(?: every (?P<interval>.*?)(?: (?:until|for) (?P<expires>.*?))?)?(?: to (?P<mentions>((?:<@\d+>)|(?:<@!\d+>)|(?:<#\d+>)|(?:\s+))+))?$"#
pub static ref REGEX_NATURAL_COMMAND_1: Regex = Regex::new(
r#"(?P<time>.*?) (?:send|say) (?P<msg>.*?)(?: to (?P<mentions>((?:<@\d+>)|(?:<@!\d+>)|(?:<#\d+>)|(?:\s+))+))?$"#
)
.unwrap();
pub static ref REGEX_NATURAL_COMMAND_2: Regex = Regex::new(
r#"(?P<msg>.*) every (?P<interval>.*?)(?: (?:until|for) (?P<expires>.*?))?$"#
)
.unwrap();