mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix regular expression related checkbox logic
This commit is contained in:
committed by
Junyoung Choi
parent
052fb3df5b
commit
e402929cca
@@ -4,7 +4,7 @@ export function getTodoStatus (content) {
|
||||
let numberOfCompletedTodo = 0
|
||||
|
||||
splitted.forEach((line) => {
|
||||
const trimmedLine = line.trim()
|
||||
const trimmedLine = line.trim().replace(/^>\s*/, '')
|
||||
if (trimmedLine.match(/^[\+\-\*] \[(\s|x)\] ./i)) {
|
||||
numberOfTodo++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user