Merge pull request #1737 from nextcloud/bugfix/noid/regex

This commit is contained in:
Julius Härtl
2020-04-21 09:55:41 +02:00
committed by GitHub

View File

@@ -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