diff options
author | modmew8 <modmew8@gmail.com> | 2018-01-03 20:45:21 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-01-03 21:45:21 +0200 |
commit | 9f8349af063ab0d35b65b1c4246799f023b68e7f (patch) | |
tree | 46cbbdc4ef58cda0b353a94f3b362b32b40f1237 /models | |
parent | 5057c6b43fb88e914ec7144985492e5b88cba29a (diff) | |
download | gitea-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.go | 4 |
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) |