Instagram has added a new video post type that doesn't use the instagram.com/p/[code] URL pattern:
https://www.instagram.com/tv/B_NzlSVBBLj/

The regular expressions that validate the post URL need to be updated to reflect this:

public static $validationRegexp = [
  '@((http|https):){0,1}//(www\.){0,1}instagram\.com/p/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
  '@((http|https):){0,1}//(www\.){0,1}instagr\.am/p/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
];

I took the liberty of creating a small patch file for version 8.x-1.x, but the same issue affects 8.x-2.x as well.

CommentFileSizeAuthor
patch.patch3.28 KBvictor.kurier

Comments

victor.kurier created an issue. See original summary.

damienmckenna’s picture

Version: 8.x-1.5 » 8.x-1.x-dev
Status: Active » Needs review
damienmckenna’s picture

Title: Instagram URL validation regular expressions are outdated » Support for "TV" Instagram posts embed (8.x-1.x)
Category: Bug report » Feature request

This adds the "tv" URLs rather than fixing something, so I think it should be noted as a feature request.

damienmckenna’s picture

FYI I added the test coverage change to #3135594: Support for "TV" Instagram posts embed (8.x-2.x) for the 8.x-2.x branch, hopefully one of the maintainers will review it and commit your change.

chr.fritsch’s picture

Status: Needs review » Closed (won't fix)

1.x is unsupported and this already works for 3.x. So, closing.