| Index: lib/utils.js |
| =================================================================== |
| --- a/lib/utils.js |
| +++ b/lib/utils.js |
| @@ -310,17 +310,17 @@ let Utils = exports.Utils = |
| * returns matching prefix if any. |
| */ |
| checkLocalePrefixMatch: function(/**String*/ prefixes) /**String*/ |
| { |
| if (!prefixes) |
| return null; |
| let appLocale = Utils.appLocale; |
| - for each (let prefix in prefixes.split(/,/)) |
| + for (let prefix of prefixes.split(/,/)) |
| if (new RegExp("^" + prefix + "\\b").test(appLocale)) |
| return prefix; |
| return null; |
| }, |
| /** |
| * Chooses the best filter subscription for user's language. |