Refine Chat experience (#210)
Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
1 parent
cb64d79755
commit
0fbdc3ac12
18 files changed
+1229
-780
No files matched your search
+1
-1
@@ -39,5 +39,5 @@ export const isSubOfficial = (): boolean => {
|
||||
* is image url
|
||||
*/
|
||||
export function isImageUrl(url: string): boolean {
|
||||
return /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff?)$/i.test(url);
|
||||
return /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff|ico|heic?)$/i.test(url.toLowerCase());
|
||||
}
|
||||
Reference in new issue
Block a user