Merge pull request #114 from superdump/square-and-curly

counter: Allow for [x] and {x} forms of notification count
This commit is contained in:
Jia Hao 2016-01-31 21:57:35 +08:00
commit 29b5af94c3
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]);