Skip to content

Commit 73a2337

Browse files
authored
Merge pull request #46 from jamesbt365/boundary
Don't capture if theres a word after numbers in issue regex
2 parents a04df7e + ae3398b commit 73a2337

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)