From 4f529a4319477874132ff241fbdd669fa0d1f5d7 Mon Sep 17 00:00:00 2001 From: kujirahand Date: Fri, 20 Dec 2024 16:35:45 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=83=BC=E3=83=96=E3=83=AB=E3=82=BB?= =?UTF-8?q?=E3=83=AB=E5=A4=89=E6=9B=B4=E3=81=A7V=E3=81=8C=E6=95=B0?= =?UTF-8?q?=E5=80=A4=E3=81=A0=E3=81=A8=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3=20#1872?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin_browser_dom_parts.mts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugin_browser_dom_parts.mts b/src/plugin_browser_dom_parts.mts index 9026ee84..1596b44d 100644 --- a/src/plugin_browser_dom_parts.mts +++ b/src/plugin_browser_dom_parts.mts @@ -579,8 +579,9 @@ export default { domTR.appendChild(newTD) td = domTR.childNodes[col + x] } - td.innerHTML = sys.__tohtml(vRow[x]) - if (isNumRight && vRow[x].match(/^(\+|-)?\d+(\.\d+)?$/)) { // number? + const v = String(vRow[x]) + td.innerHTML = sys.__tohtml(v) + if (isNumRight && v.match(/^(\+|-)?\d+(\.\d+)?$/)) { // number? td.style.textAlign = 'right' } }