Merge pull request #1141 from TheSned/DrawToolsPasteIssue

Fix Draw Tools Paste to support intel urls without www
This commit is contained in:
Dave Ingram
2016-12-27 14:50:52 -08:00
committed by GitHub

View File

@ -439,7 +439,7 @@ window.plugin.drawTools.optPaste = function() {
try { try {
// first see if it looks like a URL-format stock intel link, and if so, try and parse out any stock drawn items // 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 // 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... //looks like a ingress URL that has drawn items...
var items = promptAction.split(/[?&]/); var items = promptAction.split(/[?&]/);
var foundAt = -1; var foundAt = -1;