Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1481554 - make the regexp used to detect uuids and change them to…
Browse files Browse the repository at this point in the history
… add-on names stricter, r=mconley.
  • Loading branch information
fqueze committed Aug 7, 2018
1 parent 8acf33b commit 52746c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ var State = {
} else if (id == 1) {
name = BRAND_NAME;
image = "chrome://branding/content/icon32.png";
} else if (/[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}/.test(host)) {
} else if (/^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$/.test(host)) {
let addon = WebExtensionPolicy.getByHostname(host);
name = `${addon.name} (${addon.id})`;
image = "chrome://mozapps/skin/extensions/extensionGeneric-16.svg";
Expand Down

0 comments on commit 52746c6

Please sign in to comment.