mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
Add regular link type
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
4b530dbf6a
commit
0d6df931ea
@ -49,6 +49,7 @@ public final class TextMatchers {
|
|||||||
|
|
||||||
public enum SpecialURLType {
|
public enum SpecialURLType {
|
||||||
NONE,
|
NONE,
|
||||||
|
REGULAR,
|
||||||
GIPHY,
|
GIPHY,
|
||||||
TENOR,
|
TENOR,
|
||||||
}
|
}
|
||||||
@ -70,6 +71,8 @@ public final class TextMatchers {
|
|||||||
if (pattern.matcher(specialLink).matches()) {
|
if (pattern.matcher(specialLink).matches()) {
|
||||||
return SpecialURLType.TENOR;
|
return SpecialURLType.TENOR;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return SpecialURLType.REGULAR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user