suggestions (#7382)
* suggestions * Revert unneeded changes --------- Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
committed by
Eric Bailey
parent
09cb5aa53b
commit
31ae18591c
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user