From 7a31ac4ba08ba601cd60894d90a4e87d66423e89 Mon Sep 17 00:00:00 2001 From: Mariano Riefolo Date: Thu, 5 Sep 2024 15:30:38 +0200 Subject: [PATCH] fix(frontend): remove unnecessary whitespaces from cells --- static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.js b/static/index.js index c7cea0d..da9171f 100644 --- a/static/index.js +++ b/static/index.js @@ -122,7 +122,7 @@ function make_table(url) { let inserted = 0; data[weekday].forEach((student_class) => { let td = document.createElement("td"); - td.textContent = student_class; + td.textContent = student_class.replace(/ (?=[a-z])/g, ""); tr.appendChild(td); inserted++; });