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

Function getExt

public/js/sharedDropView.js:259–263  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

257 }
258
259 function getExt(name) {
260 const idx = name.lastIndexOf('.');
261 if (idx === -1) return '';
262 return name.slice(idx + 1).toLowerCase();
263 }
264
265 function sanitizeRelativePath(raw, fallbackName) {
266 let path = String(raw || '').replace(/\\/g, '/').trim();

Callers 1

validateQueueItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected