diff --git a/EnhancedSearch.js b/EnhancedSearch.js index 3874788..a6e76a3 100644 --- a/EnhancedSearch.js +++ b/EnhancedSearch.js @@ -1,7 +1,7 @@ // ==UserScript== // @name WME Enhanced Search // @namespace https://greasyfork.org/en/users/166843-wazedev -// @version 2019.08.26.02 +// @version 2019.10.27.01 // @description Enhances the search box to parse WME PLs and URLs from other maps to move to the location & zoom // @author WazeDev // @include https://www.waze.com/editor* @@ -277,8 +277,8 @@ WazeWrap.Model.onModelReady(function(){ //Check for selected objects let selectObjs = []; - if(pasteVal.match(/&segments=(.*)(?:&|$)/)){ - let segs = pasteVal.match(/&segments=(.*)(?:&|$)/)[1]; + if(pasteVal.match(/&segments=(.*)&|$/)){ + let segs = pasteVal.match(/&segments=(.*)&|$/)[1]; segs = segs.split(','); for(let i=0; i