(cursor)
| 1957 | } |
| 1958 | |
| 1959 | function parseCursorOffset(cursor) { |
| 1960 | const text = String(cursor == null ? '' : cursor).trim(); |
| 1961 | if (!/^\d+$/.test(text)) return 0; |
| 1962 | const value = parseInt(text, 10); |
| 1963 | return Number.isFinite(value) && value > 0 ? value : 0; |
| 1964 | } |
| 1965 | |
| 1966 | function getSubfoldersForPagingContext(pane, folder, sourceId = '') { |
| 1967 | const paneKey = normalizePaneKey(pane); |
no outgoing calls
no test coverage detected