counter: Allow for [x] and {x} forms of notification count

This commit is contained in:
Robert Swain 2016-01-30 16:42:08 +01:00 committed by Robert Swain
parent 8041663d82
commit d386598770
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
}
if (options.counter) {
const itemCountRegex = /[\(](\d*?)[\)]/;
const itemCountRegex = /[\(\[{](\d*?)[}\]\)]/;
const match = itemCountRegex.exec(mainWindow.getTitle());
if (match) {
setDockBadge(match[1]);