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

Add a "Malformed comment" check for invalid comments such as <!--> #147

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

makenowjust
Copy link
Contributor

Document.new("<a><!-->") raises undefined method '[]' for nil. This commit fixes it and adds a test for it.

`Document.new("<a><!-->")` raises `undefined method `[]' for nil`.
This commit fixes it and adds a test for it.
@makenowjust makenowjust changed the title Add a "Malformed comment" check for an invalid comment such as <!--> Add a "Malformed comment" check for invalid comments such as <!--> Jun 13, 2024
@olleolleolle
Copy link
Contributor

See #145 for the same sort of check.

I like it!

@kou kou merged commit d906ae2 into ruby:master Jun 13, 2024
61 checks passed
@kou
Copy link
Member

kou commented Jun 13, 2024

Good catch.

@makenowjust makenowjust deleted the short-malformed-comment branch June 13, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants