| Index: lib/utils.js |
| diff --git a/lib/utils.js b/lib/utils.js |
| index 9361039f8137f85bb5fe4f7fbf43590531c9a657..4f212067cc239807ab7b6e0d8be16539f1fcd7ba 100644 |
| --- a/lib/utils.js |
| +++ b/lib/utils.js |
| @@ -58,8 +58,10 @@ let Utils = exports.Utils = { |
| return null; |
| for (let prefix of prefixes.split(",")) |
| + { |
| if (new RegExp("^" + prefix + "\\b").test(this.appLocale)) |
| return prefix; |
| + } |
| return null; |
| }, |
| @@ -74,7 +76,9 @@ let Utils = exports.Utils = { |
| if (!selectedItem) |
| selectedItem = subscription; |
| - let prefix = Utils.checkLocalePrefixMatch(subscription.getAttribute("prefixes")); |
| + let prefix = Utils.checkLocalePrefixMatch( |
| + subscription.getAttribute("prefixes") |
| + ); |
| if (prefix) |
| { |
| if (!selectedPrefix || selectedPrefix.length < prefix.length) |
| @@ -105,7 +109,8 @@ let Utils = exports.Utils = { |
| getDocLink(linkID) |
| { |
| let docLink = require("prefs").Prefs.documentation_link; |
| - return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale); |
| + return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, |
| + Utils.appLocale); |
| }, |
| yield() |