fix: 简化图片URL验证逻辑,直接返回true以提高兼容性

This commit is contained in:
wizardchen
2025-12-05 21:39:23 +08:00
committed by lyingbug
parent d23863db63
commit 7ca6fdbdb6
+1 -3
View File
@@ -182,9 +182,7 @@ export function isValidImageURL(url: string): boolean {
return false;
}
// 检查是否为图片文件
const imageExtensions = /\.(jpg|jpeg|png|gif|webp|svg|bmp|ico)(\?.*)?$/i;
return imageExtensions.test(url);
return true;
}
/**