From 409b8ce0ee422513aa3747bbcd2e8cfe76a43961 Mon Sep 17 00:00:00 2001 From: Tobias Frischmann Date: Mon, 14 Sep 2026 20:36:36 +0200 Subject: [PATCH] dont use .toArray to support old browsers --- app/components/Todo/TodoShell.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/components/Todo/TodoShell.vue b/app/components/Todo/TodoShell.vue index 5bd8c28..9903197 100644 --- a/app/components/Todo/TodoShell.vue +++ b/app/components/Todo/TodoShell.vue @@ -54,12 +54,10 @@ }); const tasks = computed(() => { - let count = props.data.note - .matchAll(/^(\s*[-*+])\s+(\[[ xX]\]\s+)/gm) - .toArray().length; - let done = props.data.note - .matchAll(/^(\s*[-*+])\s+(\[[xX]\]\s+)/gm) - .toArray().length; + let count = (props.data.note.match(/^(\s*[-*+])\s+(\[[ xX]\]\s+)/gm) || []) + .length; + let done = (props.data.note.match(/^(\s*[-*+])\s+(\[[xX]\]\s+)/gm) || []) + .length; return { done, count }; }); -- 2.51.2