From 0d6df931ea094a9fbcc4222a20cdde6e535b8f1a Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 28 Dec 2018 22:08:02 +0100 Subject: [PATCH] Add regular link type Signed-off-by: Mario Danic --- app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java b/app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java index de971ffac..55859a574 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java +++ b/app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java @@ -49,6 +49,7 @@ public final class TextMatchers { public enum SpecialURLType { NONE, + REGULAR, GIPHY, TENOR, } @@ -70,6 +71,8 @@ public final class TextMatchers { if (pattern.matcher(specialLink).matches()) { return SpecialURLType.TENOR; } + } else { + return SpecialURLType.REGULAR; } }