Closed TomiMikola closed 2 years ago
This is also affecting my project as of last night. Our Drupal automated tests started failing after, I believe, #607 was merged in.
merged and site updated, thanks. changes will be reflected when caches expire in ~1hr
Is ?*
best practice?
Not seen that in any other provider.
This commit breaks this Remark Plugin. Please revert this commit or fix the regex. As @raae pointed out using *.
and ?*
causes an issue. AFAIK, this ?*
should be just *
or maybe *?
. Someone who is more experienced with Regex may chime in.
I have no strong opinion in this matter but looking at the other providers the pattern clearly is to use *.domain.com
(Just take a look at by running curl -s https://oembed.com/providers.json | grep "\/\*\."
)
I checked the JSON file and only Chainflix uses ?*
The ones that use ?
use it as a part of URL or as *?
Ok I see your point. That part wasn't changed in this PR. You should probably create a new PR for it. I was only concerned the issue with the (m|www) in the initial version before this PR.
Seems like all the other providers needing to have multiple subdomains (m. and www. on top of the root domain) are using domain.com plus *.domain.com approach. Let's stick to the same pattern with Chainflix too.
This would also fix the Chainflix oEmbed issue appearing in Drupal after #607 was merged.