[sources] fix new line splitting/escaping issue

This commit is contained in:
Andrea Vos 2021-05-19 17:16:54 +02:00
parent 8fe6f9ff78
commit d6129b95df

View File

@ -114,7 +114,7 @@ export class Source {
this.extra = extra; this.extra = extra;
this.year = year; this.year = year;
this.fragments = fragments this.fragments = fragments
? fragments.replace(/\|/g, '\n').replace('\@', '###').split('@').map(x => x.replace('###', '\@')) ? fragments.replace(/\|/g, '\n').replace('\\@', '###').split('@').map(x => x.replace('###', '\@'))
: []; : [];
this.comment = comment; this.comment = comment;
this.link = link; this.link = link;