summaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
authorEarl Warren <earl-warren@noreply.codeberg.org>2024-07-29 22:50:42 +0200
committerEarl Warren <earl-warren@noreply.codeberg.org>2024-07-29 22:50:42 +0200
commit7b798a88ee31ca5f809756498444845218454c4a (patch)
tree3feda0ac3bc5ced7b81406c60bf33887aa314135 /models/issues
parentMerge pull request 'Lock file maintenance (forgejo)' (#4723) from renovate/fo... (diff)
parentremove commented leftovers (diff)
downloadforgejo-7b798a88ee31ca5f809756498444845218454c4a.tar.xz
forgejo-7b798a88ee31ca5f809756498444845218454c4a.zip
Merge pull request 'fix(UI): issue task list numbers, fix #4431' (#4452) from mahlzahn/forgejo:fix_issue_task_list_numbers_issue_4431 into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4452 Reviewed-by: Beowulf <beowulf@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issues/issue.go b/models/issues/issue.go
index f04a4ad5c7..f7379b7e0c 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(`(^|\n)\s*[-*]\s*\[[\sxX]\]`)
+ issueTasksDonePat = regexp.MustCompile(`(^|\n)\s*[-*]\s*\[[xX]\]`)
)
// IssueIndex represents the issue index table