diff --git a/public/scripts/extensions/objective/index.js b/public/scripts/extensions/objective/index.js index 1a21b4aae..8c144cf8c 100644 --- a/public/scripts/extensions/objective/index.js +++ b/public/scripts/extensions/objective/index.js @@ -103,7 +103,7 @@ async function generateTasks() { const numberedListPattern = /^\d+\./ // Add numbered tasks, store them without the numbers. - for (const task of taskResponse.split('\n')) { + for (const task of taskResponse.split('\n').map(x => x.trim())) { if (task.match(numberedListPattern) != null) { addTask(task.replace(numberedListPattern, '').trim()) }