Skip to content

Add word boundaries to the issues regex#669

Merged
ChrisLovering merged 1 commit into
akarys/630/automatic-linking-everywherefrom
word-boundaries-in-issues-regex
Apr 8, 2021
Merged

Add word boundaries to the issues regex#669
ChrisLovering merged 1 commit into
akarys/630/automatic-linking-everywherefrom
word-boundaries-in-issues-regex

Conversation

@ChrisLovering
Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering commented Apr 8, 2021

Description

Add \b characters around the issues regex

Reasoning

So we only respond to issues if the regex fully matches a word.

EG sir-lancsdrbot#1 would match bot#1, whereas now it wouldn't match at all.## Did you:

  • Join the Python Discord Community?
  • If dependencies have been added or updated, run pipenv lock?
  • Lint your code (pipenv run lint)?
  • Set the PR to allow edits from contributors?

Copy link
Copy Markdown
Contributor

@Akarys42 Akarys42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ChrisLovering ChrisLovering merged commit 7fb4e07 into akarys/630/automatic-linking-everywhere Apr 8, 2021
@ChrisLovering ChrisLovering deleted the word-boundaries-in-issues-regex branch April 8, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants