Fix checkmark regex to apply for lists only
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -107,10 +107,10 @@ export default {
|
|||||||
currentBoard: state => state.currentBoard,
|
currentBoard: state => state.currentBoard,
|
||||||
}),
|
}),
|
||||||
checkListCount() {
|
checkListCount() {
|
||||||
return (this.card.description.match(/\[\s*\x*\]/g) || []).length
|
return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*(\s|x)\s*\](.*)$/gim) || []).length
|
||||||
},
|
},
|
||||||
checkListCheckedCount() {
|
checkListCheckedCount() {
|
||||||
return (this.card.description.match(/\[\s*x\s*\]/g) || []).length
|
return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length
|
||||||
},
|
},
|
||||||
compactMode() {
|
compactMode() {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user