Add image generation support (#207)
Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
1 parent
57e12efc80
commit
4114e687dc
4 files changed
+27
-5
No files matched your search
@@ -34,3 +34,10 @@ export const isOfficial = (): boolean => {
|
||||
export const isSubOfficial = (): boolean => {
|
||||
return isOfficial() && window.location.host !== BASE_HOST_HUB;
|
||||
};
|
||||
|
||||
/**
|
||||
* is image url
|
||||
*/
|
||||
export function isImageUrl(url: string): boolean {
|
||||
return /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff?)$/i.test(url);
|
||||
}
|
||||
Reference in new issue
Block a user