diff --git a/src/components/cards/CardBadges.vue b/src/components/cards/CardBadges.vue index 74c0e72a1..e675b82a1 100644 --- a/src/components/cards/CardBadges.vue +++ b/src/components/cards/CardBadges.vue @@ -107,10 +107,10 @@ export default { currentBoard: state => state.currentBoard, }), 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() { - return (this.card.description.match(/\[\s*x\s*\]/g) || []).length + return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length }, compactMode() { return false