suggestions (#7382)

* suggestions

* Revert unneeded changes

---------

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
Matthieu Sieben
2025-01-07 17:19:52 +01:00
committed by Eric Bailey
parent 09cb5aa53b
commit 31ae18591c
4 changed files with 14 additions and 11 deletions
+9
View File
@@ -568,3 +568,12 @@ export function parseTenorGif(urlp: URL):
dimensions,
}
}
export function isTenorGifUri(url: URL | string) {
try {
return parseTenorGif(typeof url === 'string' ? new URL(url) : url).success
} catch {
// Invalid URL
return false
}
}