nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 6cc7509a8a9ab19c6fd2c361cd869f45d8f19986
parent 8a267804283822c5353150c5619324bae9665fa1
Author: Sergey Orlov <wladimirych@gmail.com>
Date:   Thu, 30 Jul 2020 17:32:50 +0200

search, links: allow google links with two-parts tld like .com.ua

Diffstat:
Msrc/lib/leaflet.control.search/providers/links.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/leaflet.control.search/providers/links.js b/src/lib/leaflet.control.search/providers/links.js @@ -106,7 +106,7 @@ const GoogleMapsUrl = { subprocessors: [GoogleMapsSimpleUrl, GoogleMapsQueryUrl], isOurUrl: function(url) { - return Boolean(url.hostname.match(/\bgoogle\.[^.]+$/u) && url.pathname.match(/^\/maps(\/|$)/u)); + return Boolean(url.hostname.match(/\bgoogle\..+$/u) && url.pathname.match(/^\/maps(\/|$)/u)); }, getResults: function(url) {