Bug 1108382 - Part 10: Do not use non-standard flag argument of String.prototype.replace in mobile/android/. r=rnewman

This commit is contained in:
Tooru Fujisawa 2015-03-01 09:51:33 +09:00
parent e921b985a7
commit 4c8ea1ac1e

View File

@ -7709,7 +7709,7 @@ var Distribution = {
for (let key in localizeablePrefs) {
try {
let value = localizeablePrefs[key];
value = value.replace("%LOCALE%", locale, "g");
value = value.replace(/%LOCALE%/g, locale);
localizedString.data = "data:text/plain," + key + "=" + value;
defaults.setComplexValue(key, Ci.nsIPrefLocalizedString, localizedString);
} catch (e) { /* ignore bad prefs and move on */ }