1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Adjust continuous quotation pattern

This commit is contained in:
Ryota Kusano
2019-05-13 16:35:20 +09:00
committed by Junyoung Choi
parent edac4d3fed
commit 244a28c7d2
4 changed files with 8 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ export function getTodoStatus (content) {
let numberOfCompletedTodo = 0
splitted.forEach((line) => {
const trimmedLine = line.trim().replace(/^>\s*/, '')
const trimmedLine = line.trim().replace(/^(>\s*)*/, '')
if (trimmedLine.match(/^[+\-*] \[(\s|x)] ./i)) {
numberOfTodo++
}