Shorten regex further

This commit is contained in:
Yannick Funk
2021-08-25 16:34:42 +02:00
parent c29f6d830c
commit ffa721117e

View File

@@ -31,7 +31,7 @@ pub struct Data {
lazy_static! {
// ignoring I L O and U is intentional
static ref RE_ULID: Regex = Regex::new(r"<@([0-9A-HJKMNPQRSTVWXYZ]{26})>").unwrap();
static ref RE_ULID: Regex = Regex::new(r"<@([0-9A-HJKMNP-TV-Z]{26})>").unwrap();
}
#[post("/<target>/messages", data = "<message>")]