Skip to content

Commit 2008b64

Browse files
committed
Don't capture if theres a word after numbers in issue regex
1 parent 1926b14 commit 2008b64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/events/issues/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ async fn issue_embeds(data: &Data, message: &Message) -> Option<Vec<CreateEmbed>
199199

200200
fn get_issue_regex() -> &'static Regex {
201201
static REGEX: OnceLock<Regex> = OnceLock::new();
202-
REGEX.get_or_init(|| Regex::new(r" ?([a-zA-Z0-9-_.]+)?#([0-9]+) ?").unwrap())
202+
REGEX.get_or_init(|| Regex::new(r" ?([a-zA-Z0-9-_.]+)?#([0-9]+)\b").unwrap())
203203
}

0 commit comments

Comments
 (0)