forked from vgaNAR6ta/drags-and-nerds
edit: donations + modif gestion post non-formaté
This commit is contained in:
@@ -10,10 +10,12 @@ function idAndDate(str){
|
||||
function titleAndContent(str){
|
||||
let data = str.split(" :");
|
||||
let title = "NO_TITLE";
|
||||
let contentData = [""];
|
||||
if (data.length > 1){
|
||||
title = data[0];
|
||||
} else {
|
||||
contentData = data[0].split('<br>').filter(e => e);
|
||||
}
|
||||
let contentData = [""];
|
||||
if (data[1]){
|
||||
contentData = data[1].split('<br>').filter(e => e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user