From 44b4fc07d57660c72e44c7bc09377624a3d1ec06 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Tue, 7 Oct 2014 22:20:30 +0100 Subject: [PATCH] Avoid \A in js regexps, thus fixing links to launchpad bzr repos --- html/js/melpa.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; };