mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 23:13:01 -04:00
[sources] fix new line splitting/escaping issue
This commit is contained in:
parent
8fe6f9ff78
commit
d6129b95df
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user