From 1ad083e7b035894143b178024bbb4b4a8e43aa9a Mon Sep 17 00:00:00 2001 From: Daniel Angell Date: Fri, 10 Jan 2025 17:38:54 -0800 Subject: [PATCH] Make pingPatterns case insensitive --- src/client/java/dev/creesch/model/WebsocketMessageBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/java/dev/creesch/model/WebsocketMessageBuilder.java b/src/client/java/dev/creesch/model/WebsocketMessageBuilder.java index 04a96be..118177b 100644 --- a/src/client/java/dev/creesch/model/WebsocketMessageBuilder.java +++ b/src/client/java/dev/creesch/model/WebsocketMessageBuilder.java @@ -133,7 +133,7 @@ private static Pattern pingPattern(String pingKeyword) { // Check for a word boundary after the ping keyword. patternBuilder.append("\\b"); - return Pattern.compile(patternBuilder.toString()); + return Pattern.compile(patternBuilder.toString(), Pattern.CASE_INSENSITIVE); } /**