simplify regex for checkbox detection
This commit is contained in:
parent
9f461e180a
commit
b2bbf48c18
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,8 @@ type Issue struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
issueTasksPat = regexp.MustCompile(`(^\s*[-*]\s*\[[\sxX]\])|(\n\s*[-*]\s*\[[\sxX]\])`)
|
issueTasksPat = regexp.MustCompile(`(^|\n)\s*[-*]\s*\[[\sxX]\]`)
|
||||||
issueTasksDonePat = regexp.MustCompile(`(^\s*[-*]\s*\[[xX]\])|(\n\s*[-*]\s*\[[xX]\])`)
|
issueTasksDonePat = regexp.MustCompile(`(^|\n)\s*[-*]\s*\[[xX]\]`)
|
||||||
)
|
)
|
||||||
|
|
||||||
// IssueIndex represents the issue index table
|
// IssueIndex represents the issue index table
|
||||||
|
|
Loading…
Reference in a new issue