From d06efc8c9aa5b162248d7c55bcf50df6bc5fab70 Mon Sep 17 00:00:00 2001 From: Arne Date: Mon, 25 Nov 2024 12:41:26 +0100 Subject: [PATCH] Possible fix crash on older android because of regex not supported --- src/main/java/eu/siacs/conversations/entities/Conversation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index e3395f2ae..2ed286606 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -1573,7 +1573,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl anyMatchSpam = true; return; } - } catch (final java.util.regex.PatternSyntaxException e) { } // Not supported on old android + } catch (final java.util.regex.PatternSyntaxException ignored) { } // Not supported on old android if (body.length() > 320 || !m.getLinks().isEmpty() || body.matches(".*(?:\\n.*\\n.*\\n|[Aa]\\s*d\\s*v\\s*v\\s*e\\s*r\\s*t|[Pp]romotion|[Dd][Dd][Oo][Ss]|[Ee]scrow|payout|seller|\\?OTR|write me when will be|v seti|[Pp]rii?vee?t|there\\?|online\\?|exploit).*")) { anyMatchSpam = true; return;