fix linting errors
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

This commit is contained in:
2025-08-30 21:55:15 -04:00
parent 271b983618
commit 102710947b

View File

@@ -47,14 +47,14 @@ async function callOllama(prompt, model = "gemma3n:e4b", retries = 6, stepName =
function parseList(raw) {
return raw
.split("\n")
.map(line => line.replace(/^\d+[\).\s-]*/, "").trim())
.map(line => line.replace(/^\d+[).\s-]*/, "").trim())
.filter(line => line.length > 0);
}
function parseObjects(raw, type = "rooms") {
return raw
.split("\n")
.map(line => line.replace(/^\d+[\).\s-]*/, "").trim())
.map(line => line.replace(/^\d+[).\s-]*/, "").trim())
.filter(line => line.length > 0)
.map(entry => {
if (type === "rooms") {