diff --git a/models/issue.go b/models/issue.go index 052ebf90c01..3bd45396dcf 100644 --- a/models/issue.go +++ b/models/issue.go @@ -60,8 +60,8 @@ var ( issueTasksDonePat *regexp.Regexp ) -const issueTasksRegexpStr = `(^\s*-\s\[[\sx]\]\s)|(\n\s*-\s\[[\sx]\]\s)` -const issueTasksDoneRegexpStr = `(^\s*-\s\[[x]\]\s)|(\n\s*-\s\[[x]\]\s)` +const issueTasksRegexpStr = `(^\s*[-*]\s\[[\sx]\]\s.)|(\n\s*[-*]\s\[[\sx]\]\s.)` +const issueTasksDoneRegexpStr = `(^\s*[-*]\s\[[x]\]\s.)|(\n\s*[-*]\s\[[x]\]\s.)` func init() { issueTasksPat = regexp.MustCompile(issueTasksRegexpStr)