1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

Fix to remove unnecessary escape charactor erorr on IDE

This commit is contained in:
Ryota Kusano
2019-05-13 16:26:21 +09:00
committed by Junyoung Choi
parent e402929cca
commit edac4d3fed
3 changed files with 10 additions and 10 deletions

View File

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