export const isImage = (str) =>{ var reg = /.(png|jpg|gif|jpeg|webp)$/; return reg.test(str); }