From 1adaa59b4fad67e4c29bdfe3e2a389f0ef1dcfa9 Mon Sep 17 00:00:00 2001 From: fwcd Date: Mon, 21 Oct 2024 15:01:31 +0200 Subject: [PATCH] Include digits in haiku word pattern --- Sources/D2Handlers/Message/Handler/HaikuHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/D2Handlers/Message/Handler/HaikuHandler.swift b/Sources/D2Handlers/Message/Handler/HaikuHandler.swift index 65841c7a..be408f0e 100644 --- a/Sources/D2Handlers/Message/Handler/HaikuHandler.swift +++ b/Sources/D2Handlers/Message/Handler/HaikuHandler.swift @@ -6,7 +6,7 @@ import D2MessageIO import SyllableCounter private let log = Logger(label: "D2Handlers.HaikuHandler") -nonisolated(unsafe) private let wordPattern = #/[a-zäöüß\-]+/#.ignoresCase() +nonisolated(unsafe) private let wordPattern = #/[a-zäöüß\d\-]+/#.ignoresCase() public struct HaikuHandler: MessageHandler { private let syllableCounts: [Int]