Browse Source

Add regular link type

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 years ago
parent
commit
0d6df931ea
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/src/main/java/com/nextcloud/talk/utils/TextMatchers.java

+ 3 - 0
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;
             }
         }