Skip to content

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
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants