Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed regular expression for single-digit unread counts
``` (\d+[,]?\d+) ``` This pattern will fail for any inbox count with single digits, because it will be looking for two different instances of (1 or more) digits. There are a few potential fixes for this, but I don't know which is the most correct. I went with the simple case of making the second pattern be (0 or more) digits. Some alternatives ``` ([\d,]+) ``` This would match any combination of numbers and commas. ``` (\d+(?:,\d+)*) ``` I think that would match any list of comma-separated numbers.
- Loading branch information