From 1d870021456ce40f51a07d3480050c061777c46c Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 16:20:35 +0100 Subject: [PATCH] debug content --- app/tasks/UpdateGithubReadme.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index 23b2299..daba8d9 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -41,7 +41,7 @@ export async function UpdateGitHubReadme(): Promise { const old_stats_table = stats_table_check.split('\n\n| Informations')[0] if (!old_stats_table) change = true - const infos_table_check = '| Informations' + content.split('| Informations')[1] + const infos_table_check = '| Informations' + content.split('| Informations')[0] if (!infos_table_check) change = true const old_infos_table = infos_table_check.split('\n\n######')[0] if (!old_infos_table) change = true @@ -51,10 +51,9 @@ export async function UpdateGitHubReadme(): Promise { if (!change) return - console.log(content) let new_content = content.replace(old_stats_table, stats_table).replace(old_infos_table, infos_table); - console.log(" CONTENT") + console.log(" NEW CONTENT ") console.log(new_content) console.log(" ") console.log(" INFOS CHECK ")