Skip to content

Commit 36e2c13

Browse files
Nolskiokonet
authored andcommitted
docs: Updated readme for patch from PR #5
1 parent 8685b38 commit 36e2c13

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,22 @@ accept({
2424
name: 'my file.json',
2525
type: 'application/json'
2626
}, 'image/*') // => false
27+
28+
accept({
29+
name: 'my file.srt',
30+
type: ''
31+
}, '.srt') // => true
32+
```
33+
34+
You can also pass multiple mime types as a comma delimited string or array.
35+
```javascript
36+
accept({
37+
name: 'my file.json',
38+
type: 'application/json'
39+
}, 'application/json,video/*') // => true
40+
41+
accept({
42+
name: 'my file.json',
43+
type: 'application/json'
44+
}, ['application/json', 'video/*']) // => true
2745
```

0 commit comments

Comments
 (0)