Add regular link type

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-12-28 22:08:02 +01:00
parent 4b530dbf6a
commit 0d6df931ea

View file

@ -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;
}
}