about summary refs log tree commit diff stats
path: root/background.js
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2020-05-27 23:29:16 +1000
committerSimonBrazell <simon@brazell.com.au>2020-05-27 23:29:16 +1000
commitd4eb025d765e0ae6c73d23795829181a6fd56f12 (patch)
tree1a89c3eecf4ef5bf9c64e3bcf7d84bb4968db670 /background.js
parentMerge branch 'austinhuang0131-patch-1' (diff)
downloadlibredirect-d4eb025d765e0ae6c73d23795829181a6fd56f12.zip
Stop redirecting Google Maps JS API endpoints (#56)
Diffstat (limited to '')
-rw-r--r--background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/background.js b/background.js
index 5c847024..d7b7318c 100644
--- a/background.js
+++ b/background.js
@@ -55,7 +55,7 @@ const bibliogramInstances = [
   'https://bibliogram.snopyta.org'
 ];
 const osmDefault = 'https://openstreetmap.org';
-const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google).*(\/maps)|maps\.(google).*)/;
+const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/;
 const mapCentreRegex = /@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})[.z]/;
 const dataLatLngRegex = /(!3d|!4d)(-?[0-9]{1,10}.[0-9]{1,10})/g;
 const placeRegex = /\/place\/(.*)\//;