Use correct grouping

This commit is contained in:
Nils Maier 2019-11-21 13:21:02 +01:00
parent 6ed84b9560
commit 1e8e7ad6ec

View File

@ -108,7 +108,7 @@ export function importText(data: string) {
if (data.includes(NS_METALINK_RFC5854)) { if (data.includes(NS_METALINK_RFC5854)) {
return importMeta4(data); return importMeta4(data);
} }
const splitter = /(?:(.|\r)+)\n|(.+)$/g; const splitter = /((?:.|\r)+)\n|(.+)$/g;
const spacer = /^\s+/; const spacer = /^\s+/;
let match; let match;
let current: BaseItem | undefined = undefined; let current: BaseItem | undefined = undefined;