(url: string)
| 1272 | } |
| 1273 | |
| 1274 | function finalizeUploadedUrl(url: string): string { |
| 1275 | if (!settings.store.stripQueryParams) { |
| 1276 | return url; |
| 1277 | } |
| 1278 | |
| 1279 | try { |
| 1280 | const parsed = new URL(url); |
| 1281 | parsed.search = ""; |
| 1282 | return parsed.href; |
| 1283 | } catch { |
| 1284 | return url; |
| 1285 | } |
| 1286 | } |
| 1287 | |
| 1288 | function getAllowedExtensions(): Set<string> | null { |
| 1289 | const raw = (settings.store as { uploadAllowedFileTypes?: string; }).uploadAllowedFileTypes?.trim(); |
no outgoing calls
no test coverage detected