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 embed matching for single 0-indexed test attribute #26

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

MattIPv4
Copy link
Member

Type of Change

  • Embed Source: Element matching

What issue does this relate to?

N/A

What should this PR do?

In a situation where an embed was generated that contained a single test, and the integer assigned to the test was 0 (or any value other than 1), the embed would not render.

This PR changes the logic, so the initial embed detection just relies on the data-glob-tool-embed attribute alone, with the data-glob-string and data-glob-test-* attributes only being searched for (and validated) in the embed constructor.

What are the acceptance criteria?

Demo continues to work, and if the demo is edited to have a single data-glob-test-0="hello.js" attribute (alongside the data-glob-tool-embed + data-glob-string), it also continues to work.

@MattIPv4 MattIPv4 merged commit 2804cb4 into master Jan 16, 2024
2 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/fix-single-test branch January 16, 2024 17:02
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.

3 participants