From b222c48060e64a209e5f91ff2cda78c158fe0fb8 Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Thu, 11 Jul 2024 18:27:48 +0200 Subject: [PATCH] fix counting of all / done issue tasks, fix #4431 --- models/issues/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/issues/issue.go b/models/issues/issue.go index f04a4ad5c7..9a3e0e791e 100644 --- a/models/issues/issue.go +++ b/models/issues/issue.go @@ -153,8 +153,8 @@ type Issue struct { } var ( - issueTasksPat = regexp.MustCompile(`(^\s*[-*]\s\[[\sxX]\]\s.)|(\n\s*[-*]\s\[[\sxX]\]\s.)`) - issueTasksDonePat = regexp.MustCompile(`(^\s*[-*]\s\[[xX]\]\s.)|(\n\s*[-*]\s\[[xX]\]\s.)`) + issueTasksPat = regexp.MustCompile(`(^\s*[-*]\s*\[[\sxX]\].)|(\n\s*[-*]\s*\[[\sxX]\].)`) + issueTasksDonePat = regexp.MustCompile(`(^\s*[-*]\s*\[[xX]\].)|(\n\s*[-*]\s*\[[xX]\].)`) ) // IssueIndex represents the issue index table