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

Fix YouTube iframe for the Racing Kings variant page #13528

Conversation

shermansiu
Copy link
Contributor

@shermansiu shermansiu commented Sep 2, 2023

The fix makes the iframe replacement regex more robust.

The problem lies on the Racing Kings variant page: the embedded YouTube player doesn't work.

This happens because the Racing Kings iframe ends in allowfullscreen="" title="Racing Kings variant - Blitz Chess w/ commentary"></iframe>, which means that it is not picked up by the regex in ddc248d, which is supposed to detect the iframe tag and add the credentialless attribute. As a result, that attribute was not added to the YouTube iframe tag for the Racing Kings page.

Tests have been added for this extra case as well.

@ornicar ornicar merged commit 4efb422 into lichess-org:master Sep 8, 2023
3 checks passed
@shermansiu shermansiu deleted the fix/youtube-racing-kings-credentialless branch September 8, 2023 15:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants