revoltchat / backend

Monorepo for Revolt backend services.
https://developers.revolt.chat/api/
Other
1.26k stars 143 forks source link

Mention regex is not global #43

Closed sussycatgirl closed 3 years ago

sussycatgirl commented 3 years ago

image

yannickfunk commented 3 years ago

https://github.com/revoltchat/delta/blob/f09fde616a22e53e581e94b0bba5d1b7ab282dcb/src/routes/channels/message_send.rs#L33 could also be simplified to

    static ref RE_ULID: Regex = Regex::new(r"<@([0-9A-HJKMNP-TV-Z]{26})>").unwrap();