diff --git a/html/js/melpa.js b/html/js/melpa.js index ad5a2ace..90a40760 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -124,9 +124,9 @@ }; return (urlMatch(/(bitbucket\.org\/[^\/]+\/[^\/\?]+)/, "https://") || urlMatch(/(gitorious\.org\/[^\/]+\/[^.]+)/, "https://") || - urlMatch(/\Alp:(.*)/, "https://launchpad.net/") || - urlMatch(/\A(https?:\/\/code\.google\.com\/p\/[^\/]+\/)/) || - urlMatch(/\A(https?:\/\/[^.]+\.googlecode\.com\/)/)); + urlMatch(/^lp:(.*)/, "https://launchpad.net/") || + urlMatch(/^(https?:\/\/code\.google\.com\/p\/[^\/]+\/)/) || + urlMatch(/^(https?:\/\/[^.]+\.googlecode\.com\/)/)); } return null; };