Fix asterisks on opening times

This commit is contained in:
Stefan 2024-12-01 16:27:46 +00:00
parent f93e85c4f9
commit 26650299ee
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@
_site _site
node_modules node_modules
result result
package.json

View file

@ -46,7 +46,7 @@ async function updateOpeningTimes() {
.text() .text()
.trim(); .trim();
if (date && time) { if (date && time) {
times.push(`*${date}:* ${time}`); times.push(`${date}: ${time}`);
} }
}); });
} else { } else {
@ -64,7 +64,7 @@ async function updateOpeningTimes() {
if (line) { if (line) {
const parts = line.split(":"); const parts = line.split(":");
if (parts.length > 1) { if (parts.length > 1) {
times.push(`*${parts[0].trim()}:* ${parts.slice(1).join(":").trim()}`); times.push(`${parts[0].trim()}: ${parts.slice(1).join(":").trim()}`);
} else { } else {
times.push(line); times.push(line);
} }