Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mikhail-Kalinin2 opened this issue Mar 22, 2022 · 0 comments

Comments

@Mikhail-Kalinin2
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant