Skip to content

Commit

Permalink
🚨 Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oschrenk committed Jan 23, 2025
1 parent 5975f30 commit 4bf468f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Model/Service.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum Service: String, Codable, ExpressibleByArgument {

private static let servicePatterns: [Service: String] = [
Service.meet: #"https:\/\/meet\.google\.com/[a-z]{3}-[a-z]{4}-[a-z]{3}"#,
// swiftlint:disable:next line_length
Service.zoom: #"https://(?:[a-zA-Z0-9-.]+)?zoom\.(?:us|com|com\.cn|de)\/(?:my|[a-z]{1,2}|webinar)\/[-a-zA-Z0-9()@:%_\+.~#?&=\/]*"#,
Service.teams: #"https:\/\/teams\.microsoft\.com\/l\/meetup-join\/[a-zA-Z0-9_%\/=\-\+\.?]+"#,
]
Expand Down
1 change: 1 addition & 0 deletions Tests/ServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import Testing
}

@Test func testTeamsNotes() {
// swiftlint:disable:next line_length
let input = "https://teams.microsoft.com/l/meetup-join/19%3ameeting_MzI2YmRlNTgtMTU0MC00NmNhLWIzMmQtODg0ZGVmMGEwOTc3%40thread.v2/0?context=%7b%22Tid%22%3a%22c2ad6337-37a8-446a-ba48-18f44ea87c3d%22%2c%22Oid%22%3a%2230e7d7d2-057e-4d2f-8fa5-0475c962dded%22%7d"
let output = Service.fromNotes(notes: input)
let expected: [Service: String] = [Service.teams: input]
Expand Down

0 comments on commit 4bf468f

Please sign in to comment.