Bug 1537726 - Further clean up the regex for legacy homepage reset. r=r1cky

Differential Revision: https://phabricator.services.mozilla.com/D24333

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dão Gottwald 2019-03-21 11:59:32 +00:00
Родитель 87d12705bc
Коммит 613a14f509
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2593,7 +2593,7 @@ BrowserGlue.prototype = {
const DEFAULT = Services.prefs.getDefaultBranch(HOMEPAGE_PREF).getCharPref("");
let value = Services.prefs.getCharPref(HOMEPAGE_PREF);
let updated = value.replace(
/https?:\/\/([\w\-]+[.])?start[\d]*\.mozilla\.(org|com)[^|]*/ig, DEFAULT);
/https?:\/\/([\w\-]+\.)?start\d*\.mozilla\.(org|com)[^|]*/ig, DEFAULT);
if (updated != value) {
if (updated == DEFAULT) {
Services.prefs.clearUserPref(HOMEPAGE_PREF);