When using PHP 7.3, throws the following notice and doesn't match IDs.
Warning: preg_match(): Compilation failed: invalid range in character class at offset 38 in Drupal\video_embed_facebook\Plugin\video_embed_field\Provider\Facebook::getIdFromInput() (line 46 of /var/www/docroot/modules/contrib/video_embed_facebook/src/Plugin/video_embed_field/Provider/Facebook.php)

This is because hyphen (-) should be escaped in the regexp.

Comments

clement.ferrier created an issue. See original summary.

clement.ferrier’s picture

Issue summary: View changes
clement.ferrier’s picture

clement.ferrier’s picture

Status: Active » Needs review
ytsurk’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm that this patch makes the warning go away and facebook video embeding still works ;)

Also, this is backwards compatible, here a nice explanation: https://stackoverflow.com/a/56551371

govind.maloo’s picture

@clement.ferrier Thanks for the heads up. Patch apply clean and fixed the issue.

sam152’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.