This commit is contained in:
Hussam.lawen
2024-10-14 10:08:36 +03:00
parent 22bf7af9ba
commit eb804d0b34

View File

@ -8,6 +8,7 @@ from pr_agent.log import get_logger
# Compile the regex pattern once, outside the function
GITHUB_TICKET_PATTERN = re.compile(r'(https://github[^/]+/[^/]+/[^/]+/issues/\d+)|(\b(\w+)/(\w+)#(\d+)\b)')
def find_jira_tickets(text):
# Regular expression patterns for JIRA tickets
patterns = [