(options = {})
| 1946 | } |
| 1947 | |
| 1948 | function shouldUseServerFilePagingForRequest(options = {}) { |
| 1949 | if (options && options.forceLegacy) { |
| 1950 | return false; |
| 1951 | } |
| 1952 | if (window.advancedSearchEnabled) { |
| 1953 | return false; |
| 1954 | } |
| 1955 | const term = String(window.currentSearchTerm || '').trim(); |
| 1956 | return term === ''; |
| 1957 | } |
| 1958 | |
| 1959 | function parseCursorOffset(cursor) { |
| 1960 | const text = String(cursor == null ? '' : cursor).trim(); |
no outgoing calls
no test coverage detected