mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-09 20:05:22 +02:00
Merge pull request 'fix(UI): issue task list numbers, fix #4431' (#4452) from mahlzahn/forgejo:fix_issue_task_list_numbers_issue_4431 into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4452 Reviewed-by: Beowulf <beowulf@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
7b798a88ee
3 changed files with 56 additions and 7 deletions
|
@ -153,8 +153,8 @@ type Issue struct {
|
|||
}
|
||||
|
||||
var (
|
||||
issueTasksPat = regexp.MustCompile(`(^\s*[-*]\s\[[\sxX]\]\s.)|(\n\s*[-*]\s\[[\sxX]\]\s.)`)
|
||||
issueTasksDonePat = regexp.MustCompile(`(^\s*[-*]\s\[[xX]\]\s.)|(\n\s*[-*]\s\[[xX]\]\s.)`)
|
||||
issueTasksPat = regexp.MustCompile(`(^|\n)\s*[-*]\s*\[[\sxX]\]`)
|
||||
issueTasksDonePat = regexp.MustCompile(`(^|\n)\s*[-*]\s*\[[xX]\]`)
|
||||
)
|
||||
|
||||
// IssueIndex represents the issue index table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue