Skip to content

Commit 444a8fd

Browse files
committed
fix type
1 parent be68283 commit 444a8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/slackBotFunction/app/utils/handler_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def strip_mentions(message_text: str) -> str:
144144
return re.sub(r"<@[UW][A-Z0-9]+(\|[^>]+)?>", "", message_text or "").strip()
145145

146146

147-
def extract_pull_request_id(text: str) -> str:
147+
def extract_pull_request_id(text: str) -> Tuple[str, str]:
148148
# Regex: '#pr' + optional space + number + space + rest of text
149149
pattern = re.escape(constants.PULL_REQUEST_PREFIX) + r"\s*(\d+)\s+(.+)"
150150
match = re.match(pattern, text)

0 commit comments

Comments
 (0)