From c33cb32252c80b0cb7089dc633771a595e692360 Mon Sep 17 00:00:00 2001 From: William Pryor Date: Sun, 4 Nov 2018 01:47:56 -0400 Subject: [PATCH] Update draw-tools.user.js to correct import Drawn items from (new) standard intel site will be rejected upon import with the prior regex. This should allow new and old style intel strings to be imported into draw tools. --- 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 4f66d3b8a..ea8b6115d 100644 --- a/plugins/draw-tools.user.js +++ b/plugins/draw-tools.user.js @@ -440,7 +440,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\.)|(intel\.)?ingress\\.com/intel.*[?&]pls="))) { //looks like a ingress URL that has drawn items... var items = promptAction.split(/[?&]/); var foundAt = -1;