Skip to content

Commit c37c8cb

Browse files
authored
Merge pull request #22 from morja/main
Allow umap URLs for openstreetmap
2 parents 828f738 + f033d52 commit c37c8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Handler/OpenStreetMapHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(OpenStreetMapService $openStreetMapService = null)
3333
public function hasMatches(string $content): bool
3434
{
3535
preg_match_all(
36-
'/<iframe(?:(?: src="(?:(?:https?:)?\/\/)?(?:www\.)?openstreetmap\.org\/export\/embed.html\?bbox=(?<bbox>[^&]+)[^"]*?"| height="(?<height>[^"]+)"| width="(?<width>[^"]+)"|(?!src)[^>])+)>.*?<\/iframe>/i',
36+
'/<iframe(?:(?: src="(?:(?:https?:)?\/\/)?(?:(?:www|umap)\.)?openstreetmap\.(?:org|de|fr)\/(?:export\/embed.html\?bbox=(?<bbox>[^&]+)|[a-z]{2}\/map\/)[^"]*?"| height="(?<height>[^"]+)"| width="(?<width>[^"]+)"|(?!src)[^>])+)>.*?<\/iframe>/i',
3737
$content,
3838
$this->matches,
3939
PREG_SET_ORDER

0 commit comments

Comments
 (0)