From e93eea234f294551c20787718cead4877429a5b7 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Thu, 7 Dec 2023 00:36:55 -0800 Subject: Fix chat message parser regex. --- Hotline/Hotline/HotlineClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hotline/Hotline/HotlineClient.swift b/Hotline/Hotline/HotlineClient.swift index 1eb7719..c325fb7 100644 --- a/Hotline/Hotline/HotlineClient.swift +++ b/Hotline/Hotline/HotlineClient.swift @@ -21,7 +21,7 @@ struct HotlineChat: Identifiable { let username: String let type: HotlineChatType - static let parser = /\s+(.+):\s+(.*)/ + static let parser = /^\s*([^\:]+)\:\s*(.*)/ init(text: String, type: HotlineChatType = .message) { self.type = type -- cgit