summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authormodmew8 <modmew8@gmail.com>2018-01-03 20:45:21 +0100
committerLauris BH <lauris@nix.lv>2018-01-03 21:45:21 +0200
commit9f8349af063ab0d35b65b1c4246799f023b68e7f (patch)
tree46cbbdc4ef58cda0b353a94f3b362b32b40f1237 /models
parent5057c6b43fb88e914ec7144985492e5b88cba29a (diff)
downloadgitea-9f8349af063ab0d35b65b1c4246799f023b68e7f.tar.gz
gitea-9f8349af063ab0d35b65b1c4246799f023b68e7f.zip
Fixed asterisk based tasklist items, fixed requirement for one char after last blank to be a valid task. (#3296)
Signed-off-by: modmew8 <modmew8@gmail.com>
Diffstat (limited to 'models')
-rw-r--r--models/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go
index 052ebf90c0..3bd45396dc 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)