Commit 5b974d3c authored by Owen Bush's avatar Owen Bush Committed by Marcos Cano
Browse files

Issue #3312167 by owenbush, marcoscano: Brightcove Regular Expression Doesn't Match All URLs

parent 55063773
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ class MediaRemoteBrightcoveFormatter extends MediaRemoteFormatterBase {
   * {@inheritdoc}
   */
  public static function getUrlRegexPattern() {
    return '/^https:\/\/players\.brightcove\.net\/([\d]+)\/default_default\/index\.html\?videoId=([\d]+)/';
    return '/^https:\/\/players\.brightcove\.net\/([\d]+)\/[a-zA-Z0-9-]+_default\/index\.html\?videoId=([\d]+)/';
  }

  /**
@@ -30,6 +30,7 @@ class MediaRemoteBrightcoveFormatter extends MediaRemoteFormatterBase {
  public static function getValidUrlExampleStrings(): array {
    return [
      'https://players.brightcove.net/[account-id]/default_default/index.html?videoId=[video-id]',
      'https://players.brightcove.net/[account-id]/abc-ABC-123_default/index.html?videoId=[video-id]',
    ];
  }