Trim strings in objectives list

This commit is contained in:
SillyLossy
2023-06-03 02:30:10 +03:00
parent cf9e87ed25
commit 8b86b29981

View File

@ -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())
}