]> source.dussan.org Git - gitea.git/commitdiff
Allow X in addition to x in tasks (#10979) (#11335)
authorzeripath <art27@cantab.net>
Fri, 8 May 2020 12:55:16 +0000 (13:55 +0100)
committerGitHub <noreply@github.com>
Fri, 8 May 2020 12:55:16 +0000 (20:55 +0800)
Signed-off-by: Andrew Thornton <art27@cantab.net>
models/issue.go

index de3243cd5836678ee375e70a7f5c3adf719207fa..04b9b3551fcb39a9c54acdbf88c5643b5bd425db 100644 (file)
@@ -74,8 +74,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
 
 func init() {