Skip to content

Checkboxes started with "+ [ ]" are not counted #2187

Description

@joreiff

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Description

The markdown dialect used by Nextcloud Deck allows unordered lists of checkboxes to be created using ´* [ ]´, ´- [ ]´ or ´+ [ ]´. The latter, however, is not included in the checked/total count on the card. The following functions need to be adapted:

checkListCount() {
return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*(\s|x)\s*\](.*)$/gim) || []).length
},
checkListCheckedCount() {
return (this.card.description.match(/^\s*(\*|-|(\d\.))\s+\[\s*x\s*\](.*)$/gim) || []).length
},

Steps to reproduce

Create a card with the following description:

* [ ] first
- [ ] second
+ [ ] third

Expected behavior

The card shows 0/3.

Actual behaviour

The card shows 0/2.

Client details **OS:** Fedora

Browser: Firefox 79

Device: desktop

Server details

Operating system: Centos 8

Web server: nginx

Database: postgresql

PHP version: 7.4

Nextcloud version: 18.0.7

Where did you install Nextcloud from: https://download.nextcloud.com/server/releases/latest.tar.bz2

Signing status:

No errors have been found.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions