summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-04-05 23:39:05 +0100
committerGitHub <noreply@github.com>2020-04-05 17:39:05 -0500
commitca33a9577890559f53b6164728ae2ada298b8902 (patch)
treec4c8875f021f803f66d3c6f1abd0d645d20c9788
parentf072d4566f973d89eb233f644e41848f6e6d32b4 (diff)
downloadgitea-ca33a9577890559f53b6164728ae2ada298b8902.tar.gz
gitea-ca33a9577890559f53b6164728ae2ada298b8902.zip
Allow X in addition to x in tasks (#10979)
Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r--models/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go
index db8991095d..ba211e9670 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -73,8 +73,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\[[\sxX]\]\s.)|(\n\s*[-*]\s\[[\sxX]\]\s.)`
+const issueTasksDoneRegexpStr = `(^\s*[-*]\s\[[xX]\]\s.)|(\n\s*[-*]\s\[[xX]\]\s.)`
const issueMaxDupIndexAttempts = 3
const maxIssueIDs = 950