Skip to content

In TextformatterVideoEmbed module optional query string doesn't work #19

@Atlant-Lektanov

Description

@Atlant-Lektanov

Short description of the issue

I'm using the code from TextformatterVideoEmbed module, method embedYoutube. Noticed that there is a code for optional query string which should put a query string into matches[3] (like ?autoplay=1).

Expected behavior

The code should put a query string into matches[3] (like ?autoplay=1).

Actual behavior

It turns out that matches[3] receive an array of empty strings instead of array of query strings.

Steps to reproduce the issue

  1. Create a field with Textarea (Multi-Language) type.
  2. Fill it up with two strings of YouTube with query strings, separated by empty strings.
  3. Write bd($matches) in the code below this line.

Setup/Environment

  • ProcessWire version: 3.0.188.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions