Skip to content

Commit 87c4bc1

Browse files
zeripatheverhopingandwaiting
authored andcommitted
Allow X in addition to x in tasks (go-gitea#10979)
Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent 7f49034 commit 87c4bc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

models/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ var (
7373
issueTasksDonePat *regexp.Regexp
7474
)
7575

76-
const issueTasksRegexpStr = `(^\s*[-*]\s\[[\sx]\]\s.)|(\n\s*[-*]\s\[[\sx]\]\s.)`
77-
const issueTasksDoneRegexpStr = `(^\s*[-*]\s\[[x]\]\s.)|(\n\s*[-*]\s\[[x]\]\s.)`
76+
const issueTasksRegexpStr = `(^\s*[-*]\s\[[\sxX]\]\s.)|(\n\s*[-*]\s\[[\sxX]\]\s.)`
77+
const issueTasksDoneRegexpStr = `(^\s*[-*]\s\[[xX]\]\s.)|(\n\s*[-*]\s\[[xX]\]\s.)`
7878
const issueMaxDupIndexAttempts = 3
7979
const maxIssueIDs = 950
8080

0 commit comments

Comments
 (0)