Created
March 18, 2019 23:36
-
-
Save iaindooley/82710e28b43c14af7d79084a578b407f to your computer and use it in GitHub Desktop.
Global list counts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function globalListCount(notification) | |
{ | |
var card = new Notification(notification).addedCard(/.+ \([0-9]+\)/); | |
if(parts = /(.+) \([0-9]+\)/.exec(card.currentList().name())) | |
card.currentList().setName(parts[1]+" ("+card.currentList().countCards()+")"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment