MCPcopy Create free account
hub / github.com/error311/FileRise / getExt

Function getExt

public/js/sharedFolderView.js:654–658  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

652 }
653
654 function getExt(name) {
655 const idx = name.lastIndexOf('.');
656 if (idx === -1) return '';
657 return name.slice(idx + 1).toLowerCase();
658 }
659
660 const IMG_EXT = new Set(['jpg','jpeg','png','gif','bmp','webp','ico']);
661 const VID_EXT = new Set(['mp4','mkv','webm','mov','ogv']);

Callers 3

getPreviewTypeFunction · 0.70
renderListFunction · 0.70
renderGalleryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected