From 8396d2beb8bdfeacb22cd1f53b3b0ad49bc25883 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 22 Jun 2026 09:57:23 +0900 Subject: [PATCH] Update frontend-bundle-visualizer-report.mjs --- .github/scripts/frontend-bundle-visualizer-report.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/frontend-bundle-visualizer-report.mjs b/.github/scripts/frontend-bundle-visualizer-report.mjs index 4423c6191f..08bde45004 100644 --- a/.github/scripts/frontend-bundle-visualizer-report.mjs +++ b/.github/scripts/frontend-bundle-visualizer-report.mjs @@ -30,11 +30,11 @@ function formatNumber(value) { } function formatPercent(value) { - return `${value.toFixed(1)}%`; + return `${Math.round(value)}%`; } function sharePercent(value, total) { - if (total === 0) return '0.0%'; + if (total === 0) return '0%'; return formatPercent((value / total) * 100); } @@ -43,7 +43,7 @@ function formatMathText(text) { .replaceAll('\\', '\\\\') .replaceAll('{', '\\{') .replaceAll('}', '\\}') - .replaceAll('%', '\\\\%'); + .replaceAll('%', '\\%'); } function formatColoredDiff(text, diff) {