Skip to content

Commit 61125f9

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.6.25
1 parent 824c82d commit 61125f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/MediaFinders/AbstractVimeoEmbedFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
abstract class AbstractVimeoEmbedFinder extends AbstractEmbedFinder
1313
{
14-
protected static string $realIdPattern = '#(?<id>[0-9]+)$#';
14+
protected static string $realIdPattern = '#(?<id>[0-9]+)(?:\?.*)?$#';
1515
/**
1616
* @internal Use getPlatform() instead
1717
*/
@@ -33,7 +33,7 @@ public static function supportEmbedUrl(string $embedUrl): bool
3333
#[\Override]
3434
protected function validateEmbedId(string $embedId = ''): string
3535
{
36-
if (1 === preg_match('#(?<id>[0-9]+)$#', $embedId, $matches)) {
36+
if (1 === preg_match(static::$realIdPattern, $embedId, $matches)) {
3737
return $matches['id'];
3838
}
3939
throw new InvalidEmbedId($embedId, static::$platform);

0 commit comments

Comments
 (0)