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
node_modules
result
package.json

View file

@ -46,7 +46,7 @@ async function updateOpeningTimes() {
.text()
.trim();
if (date && time) {
times.push(`*${date}:* ${time}`);
times.push(`${date}: ${time}`);
}
});
} else {
@ -64,7 +64,7 @@ async function updateOpeningTimes() {
if (line) {
const parts = line.split(":");
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 {
times.push(line);
}