TextformatterVideoEmbed icon indicating copy to clipboard operation
TextformatterVideoEmbed copied to clipboard

In TextformatterVideoEmbed module optional query string doesn't work

Open Atlant-Lektanov opened this issue 3 years ago • 0 comments

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.

Atlant-Lektanov avatar Mar 22 '22 07:03 Atlant-Lektanov