here i am trying to validate the SVG image mime type. Even I am passing valid content-type also it fails. Can anyone suggest to me what's wrong with this regex?
const mimetypes = /image\/png|image\/jpeg|imagesvg+xml|image\/gif|image\/svg+xml/;
var result = mimetypes.test('image/svg+xml')
console.log(result)