Skip to content

Commit

Permalink
Merge pull request #16 from Peter253545/main
Browse files Browse the repository at this point in the history
Add support for 3 letter base language codes in announcer message
  • Loading branch information
SuperManifolds authored Feb 12, 2025
2 parents 3b5255f + cda589f commit c9f7886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/mechasqueak/RescueBoard/Rescue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Regex

class Rescue {
private static let announcerExpression =
"Incoming Client: (.*) - System: (.*) - Platform: ([A-Za-z0-9]+)( (Horizons 3.8|Horizons 4.0|Odyssey))? - O2: (.*) - Language: .* \\(([a-z]{2}(?:-(?:[A-Z]{2}|[0-9]{3}))?(?:-[A-Za-z0-9]+)?)\\)(?: - IRC Nickname: (.*))?"
"Incoming Client: (.*) - System: (.*) - Platform: ([A-Za-z0-9]+)( (Horizons 3.8|Horizons 4.0|Odyssey))? - O2: (.*) - Language: .* \\(([a-z]{2,3}(?:-(?:[A-Z]{2}|[0-9]{3}))?(?:-[A-Za-z0-9]+)?)\\)(?: - IRC Nickname: (.*))?"
.r!

let id: UUID
Expand Down

0 comments on commit c9f7886

Please sign in to comment.