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
- Create a field with Textarea (Multi-Language) type.
- Fill it up with two strings of YouTube with query strings, separated by empty strings.
- Write bd($matches) in the code below this line.
Setup/Environment
- ProcessWire version: 3.0.188.