MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / stripTrailingImageExt

Function stripTrailingImageExt

nodeImage.js:378–381  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

376 });
377 }
378 function stripTrailingImageExt(id) {
379 if (!id || typeof id !== 'string') return id;
380 return id.replace(/\.(jpe?g|png|gif|webp)$/i, '');
381 }
382 function apiImageIdCandidates(raw) {
383 var s = String(raw || '').trim();
384 if (!s) return [];

Callers 1

apiImageIdCandidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected