From 8a0e023928de19ec66fd12f81df139bf5cca5fb4 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 20 Dec 2020 16:57:03 +0100 Subject: [PATCH] Working --- app/tasks/UpdateGithubReadme.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/tasks/UpdateGithubReadme.ts b/app/tasks/UpdateGithubReadme.ts index bbd03ed..5527e89 100644 --- a/app/tasks/UpdateGithubReadme.ts +++ b/app/tasks/UpdateGithubReadme.ts @@ -51,16 +51,12 @@ export async function UpdateGitHubReadme(): Promise { if (!change) return - let new_content = content.replace(old_stats_table, stats_table).replace(old_infos_table, infos_table); + let new_content = content.replace(old_stats_table, stats_table); + new_content = new_content.replace(old_infos_table, infos_table) console.log(" NEW CONTENT ") console.log(new_content) console.log(" ") - console.log(" INFOS CHECK ") - console.log(old_infos_table) - console.log(" ") - console.log(" STATS CHECK ") - console.log(old_stats_table) await axios.put('https://api.github.com/repos/ArthurDanjou/ArthurDanjou/contents/README.md', { headers: {