From c493027f247d8745ef7fc56ac03c0937734f2bda Mon Sep 17 00:00:00 2001 From: bakhirev Date: Sat, 7 Sep 2024 01:55:28 +0300 Subject: [PATCH] update --- build/index.html | 2 +- scripts/add-local.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/index.html b/build/index.html index b7d86b6..770147e 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -Git Statistics
\ No newline at end of file +Git Statistics
\ No newline at end of file diff --git a/scripts/add-local.js b/scripts/add-local.js index 554f5a4..1f58f63 100644 --- a/scripts/add-local.js +++ b/scripts/add-local.js @@ -12,6 +12,5 @@ prefixes.forEach((prefix) => { const content = paths.join(''); const html = fs.readFileSync('../build/index.html', 'utf8'); -const text = html - .replace(/var\sreport=\[]<\/script>/gim, `var report=[]${content}`); +const text = html.replace(/<\/title>/gim, `${content}`); fs.writeFileSync('../build/index.html', text);