(js) Fix mail filters with flags prefixed with $

Fixes #4461
This commit is contained in:
Francis Lachapelle committed 2018-05-14 23:18:59 -04:00
1 parent 31d7926304
commit 65812424d6
5 files changed
+38 -18

No files matched your search

@@ -17,7 +17,7 @@
this.timeZonesList = $window.timeZonesList;
this.timeZonesSearchText = '';
this.sieveVariablesCapability = ($window.sieveCapabilities.indexOf('variables') >= 0);
this.mailLabelKeyRE = new RegExp("^[^(){} %*\"\\\\]*$");
this.mailLabelKeyRE = new RegExp(/^(?!^_\$)[^(){} %*\"\\\\]*?$/);
if (sgSettings.activeUser('path').mail) {