From 9f8349af063ab0d35b65b1c4246799f023b68e7f Mon Sep 17 00:00:00 2001 From: modmew8 Date: Wed, 3 Jan 2018 20:45:21 +0100 Subject: [PATCH] Fixed asterisk based tasklist items, fixed requirement for one char after last blank to be a valid task. (#3296) Signed-off-by: modmew8 --- models/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)