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

Function isArchiveFileName

public/js/domUtils.js:22–27  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

20const RAR_PART_RE = /\.r\d{2}$/i;
21
22export function isArchiveFileName(name) {
23 const lower = String(name || "").toLowerCase();
24 if (!lower) return false;
25 if (RAR_PART_RE.test(lower)) return true;
26 return ARCHIVE_EXTS.some(ext => lower.endsWith(ext));
27}
28
29// Basic DOM Helpers
30export function toggleVisibility(elementId, shouldShow) {

Callers 3

updateFileActionButtonsFunction · 0.85
currentSelectionFunction · 0.85
handleExtractZipSelectedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected