From ef6f1d0ed629e1f30e62e8c451bd2ef5d882517d Mon Sep 17 00:00:00 2001 From: "Snedecor, David" Date: Mon, 17 Oct 2016 11:25:05 -0500 Subject: [PATCH] Fix regex to support intel links that do not have www (e.g. http://ingress.com/intel). --- plugins/draw-tools.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/draw-tools.user.js b/plugins/draw-tools.user.js index 72ecbb7e..24677799 100644 --- a/plugins/draw-tools.user.js +++ b/plugins/draw-tools.user.js @@ -439,7 +439,7 @@ window.plugin.drawTools.optPaste = function() { try { // first see if it looks like a URL-format stock intel link, and if so, try and parse out any stock drawn items // from the pls parameter - if (promptAction.match(new RegExp("^(https?://)?(www\\.)ingress\\.com/intel.*[?&]pls="))) { + if (promptAction.match(new RegExp("^(https?://)?(www\\.)?ingress\\.com/intel.*[?&]pls="))) { //looks like a ingress URL that has drawn items... var items = promptAction.split(/[?&]/); var foundAt = -1;