Skip to content

Commit 3db7310

Browse files
committed
fixed google maps detection in other domains
1 parent c8d3254 commit 3db7310

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Adapters/Google.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static function check(Request $request)
1717
{
1818
return $request->match([
1919
'https://maps.google.*',
20-
'https://www.google.com/maps*',
20+
'https://www.google.*/maps*',
2121
]);
2222
}
2323

tests/GoogleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ public function testMap()
77

88
$this->assertEquals($info->title, 'Google Maps');
99
$this->assertEquals($info->type, 'rich');
10-
$this->assertEquals($info->providerName, 'google');
10+
$this->assertEquals($info->providerName, 'Google Maps');
1111
}
1212
}

0 commit comments

Comments
 (0)