Jira Issue Key Parser in Swift
import SwiftJiraIssueKeyParser
let issue = JiraIssueKey(string: "The issue is SMART-1")
print(issue?.id) // "SMART-1"
import SwiftJiraIssueKeyParser
let issue = "The issue is SMART-1, not SMART-2".firstJiraIssueKey
print(issue?.id) // "SMART-1"
dependencies: [
.package(url: "https://github.com/dan-hart/SwiftJiraIssueKeyParser.git", from: "0.0.2")
]
Alternatively, you can add the package directly via Xcode.