Simplify content type shown in dir lists

This commit is contained in:
2017-11-12 15:06:07 +01:00
parent 0db37c96f5
commit ab4dca82fd
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
export default function simpleContentType(str) {
return str.replace(/;.*$/, '');
}