parseMirrorList
Import from: @xbbg/xnews
parseMirrorList(
text,source?):MirrorList
Defined in: src/mirrors.ts (declaration: mirrors.d.ts:50)
Parses mirror-list text. Never throws: a malformed entry is dropped and explained in warnings, so one bad line cannot cost you the whole file.
Entries must be HTTPS. src/http.ts refuses plaintext requests, so an http:// origin would fail at request time; rejecting it here turns a per-request failure into one parse-time warning.
Parameters
text
string
source?
string
