Simplify content type shown in dir lists
This commit is contained in:
3
app/utils/simple-content-type.js
Normal file
3
app/utils/simple-content-type.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function simpleContentType(str) {
|
||||
return str.replace(/;.*$/, '');
|
||||
}
|
||||
Reference in New Issue
Block a user