Skip to content

Commit

Permalink
feat: Add urArgs support to evl/vlink
Browse files Browse the repository at this point in the history
Fixes #101
  • Loading branch information
octfx committed Sep 10, 2024
1 parent f1434ea commit 21abdee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/EmbedVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public static function parseEVL( Parser $parser, PPFrame $frame, array $args ):
'text' => null,
'player' => null,
'service' => null,
'urlArgs' => null,
];

$keys = array_keys( $expandedArgs );
Expand All @@ -152,7 +153,7 @@ public static function parseEVL( Parser $parser, PPFrame $frame, array $args ):
$value = trim( $frame->expand( $arg ) );

if ( str_contains( $value, '=' ) ) {
$parts = array_map( 'trim', explode( '=', $value ) );
$parts = array_map( 'trim', explode( '=', $value, 2 ) );

$expandedArgs[$parts[0]] = $parts[1] ?? null;
} else {
Expand Down

0 comments on commit 21abdee

Please sign in to comment.