The script parses selections to find valid JIRA ticket and when found - opens it in browser

Install open-jira-ticket

// Menu: Open Jira ticket in browser
// Description: Parses a valid ticket number from selection and opens it in browser
// Author: Jakub Olek
// Twitter: @JakubOlek
const jiraDomain = await env("JIRA_DOMAIN");
const text = await getSelectedText();
const jiraTicket = text.match(/([A-Z]{2,5}-[0-9]+)/);
if (jiraTicket) {