()
| 535 | } |
| 536 | |
| 537 | function getFileListSummaryDepth() { |
| 538 | const cfg = window.__FR_SITE_CFG__ || window.siteConfig || {}; |
| 539 | const display = (cfg && typeof cfg.display === 'object') ? cfg.display : {}; |
| 540 | const raw = parseInt(display.fileListSummaryDepth, 10); |
| 541 | const depth = Number.isFinite(raw) ? raw : DEFAULT_FILE_LIST_SUMMARY_DEPTH; |
| 542 | return Math.max(MIN_FILE_LIST_SUMMARY_DEPTH, Math.min(MAX_FILE_LIST_SUMMARY_DEPTH, depth)); |
| 543 | } |
| 544 | |
| 545 | function getFileExt(name) { |
| 546 | const dot = name.lastIndexOf("."); |
no outgoing calls
no test coverage detected