Skip to content

Commit

Permalink
allow trailing whitespace at end of ROLE_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt authored Sep 25, 2023
1 parent 2bd7ce0 commit 2d3f2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ class BaseActor:
def _get_role_regex(cls) -> re.Pattern:
if cls._ROLE_REGEX is None:
# for example "Selected Assignee: @samuelcolvin" or "Selected Reviewer: @samuelcolvin"
cls._ROLE_REGEX = re.compile(rf'selected[ -]{cls.ROLE}:\s*@([\w\-]+)$', flags=re.I)
cls._ROLE_REGEX = re.compile(rf'selected[ -]{cls.ROLE}:\s*@([\w\-]+)\s*$', flags=re.I)
return cls._ROLE_REGEX

0 comments on commit 2d3f2f9

Please sign in to comment.