mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 11:47:24 +01:00
Adds an iMeta cache for Picture and Video kinds and speeds up the procedure to verify if a video or picture is supported.
This commit is contained in:
@@ -367,11 +367,11 @@ class RichTextParser {
|
||||
|
||||
private fun removeQueryParamsForExtensionComparison(fullUrl: String): String =
|
||||
if (fullUrl.contains("?")) {
|
||||
fullUrl.split("?")[0].lowercase()
|
||||
fullUrl.split("?")[0]
|
||||
} else if (fullUrl.contains("#")) {
|
||||
fullUrl.split("#")[0].lowercase()
|
||||
fullUrl.split("#")[0]
|
||||
} else {
|
||||
fullUrl.lowercase()
|
||||
fullUrl
|
||||
}
|
||||
|
||||
fun isImageOrVideoUrl(url: String): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user