From f3a90057a53924640d4863c2c49c5b11bc7bb891 Mon Sep 17 00:00:00 2001 From: zeripath Date: Fri, 8 May 2020 13:55:16 +0100 Subject: [PATCH] Allow X in addition to x in tasks (#10979) (#11335) Signed-off-by: Andrew Thornton --- models/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/issue.go b/models/issue.go index de3243cd5..04b9b3551 100644 --- a/models/issue.go +++ b/models/issue.go @@ -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() {