mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
add + and * to matching pattern
This commit is contained in:
@@ -103,10 +103,10 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
|
|
||||||
for (let i = 0; i < splitted.length; i++) {
|
for (let i = 0; i < splitted.length; i++) {
|
||||||
let trimmedLine = splitted[i].trim()
|
let trimmedLine = splitted[i].trim()
|
||||||
if (trimmedLine.match(/^- \[\s|x\] ./)) {
|
if (trimmedLine.match(/^[\+\-\*] \[\s|x\] ./)) {
|
||||||
numberOfTodo++
|
numberOfTodo++
|
||||||
}
|
}
|
||||||
if (trimmedLine.match(/^- \[x\] ./)) {
|
if (trimmedLine.match(/^[\+\-\*] \[x\] ./)) {
|
||||||
numberOfCompletedTodo++
|
numberOfCompletedTodo++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user