@onehat/ui 0.3.74 → 0.3.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,8 +203,13 @@ function AttachmentsElement(props) {
203
203
  let name,
204
204
  mimetypes;
205
205
  if (_.isString(accept)) {
206
- name = 'mimetype LIKE';
207
- mimetypes = accept.replace('*', '%');
206
+ if (accept.match(/,/)) {
207
+ name = 'mimetype IN';
208
+ mimetypes = accept.split(',');
209
+ } else {
210
+ name = 'mimetype LIKE';
211
+ mimetypes = accept.replace('*', '%');
212
+ }
208
213
  } else if (_.isArray(accept)) {
209
214
  name = 'mimetype IN';
210
215
  mimetypes = accept;