Parse max file size (MB) from Performance settings input; requires integer >= 1.
(raw)
| 2 | const DEBUG = true; // Enable debugging temporarily |
| 3 | /** Parse max file size (MB) from Performance settings input; requires integer >= 1. */ |
| 4 | function parseMaxFileSizeMBInput(raw) { |
| 5 | const n = parseInt(raw, 10); |
| 6 | if (Number.isNaN(n) || n < 1) return null; |
| 7 | return n; |
| 8 | } |
| 9 | |
| 10 | function escapeHtml(text) { |
| 11 | const div = document.createElement('div'); |
no outgoing calls
no test coverage detected