Fix mimetype regex

Regex was only replacing the first * when having multiple mimetypes.
For example image/*,video/*