mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 23:42:28 +00:00
fix counting of all / done issue tasks, fix #4431
This commit is contained in:
parent
22de4ae9c4
commit
b222c48060
|
@ -153,8 +153,8 @@ type Issue struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
issueTasksPat = regexp.MustCompile(`(^\s*[-*]\s\[[\sxX]\]\s.)|(\n\s*[-*]\s\[[\sxX]\]\s.)`)
|
issueTasksPat = regexp.MustCompile(`(^\s*[-*]\s*\[[\sxX]\].)|(\n\s*[-*]\s*\[[\sxX]\].)`)
|
||||||
issueTasksDonePat = regexp.MustCompile(`(^\s*[-*]\s\[[xX]\]\s.)|(\n\s*[-*]\s\[[xX]\]\s.)`)
|
issueTasksDonePat = regexp.MustCompile(`(^\s*[-*]\s*\[[xX]\].)|(\n\s*[-*]\s*\[[xX]\].)`)
|
||||||
)
|
)
|
||||||
|
|
||||||
// IssueIndex represents the issue index table
|
// IssueIndex represents the issue index table
|
||||||
|
|
Loading…
Reference in a new issue