Skip to content

Commit

Permalink
Fix Firefox URL matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Borkan committed Sep 28, 2015
1 parent 221abe8 commit 97601c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/firefox/lib/url-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ exports.setup = function(panel, button) {
subject.QueryInterface(Ci.nsIHttpChannel);
var url = subject.URI.spec

if (/https:\/\/www.uproxy.org\/(request|offer)\/(.*)/.test(url)) {
if (/^https:\/\/www.uproxy.org\/(request|offer)\/(.*)/.test(url)) {
panel.port.emit('copyPasteUrlData', url);
} else if (/https:\/\/www.uproxy.org\/invite\/(.*)/.test(url)) {
} else if (/^https:\/\/www.uproxy.org\/invite\/(.*)/.test(url)) {
panel.port.emit('inviteUrlData', url);
} else {
return;
Expand Down

0 comments on commit 97601c1

Please sign in to comment.