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 top-level comments #145

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

makenowjust
Copy link
Contributor

@makenowjust makenowjust commented Jun 12, 2024

This check was missing. Therefore, REXML::Document.new("<!--") raised the undefined method `[]' for nil error, for example.

This PR also adds tests for "malformed comment" checks.

This check was missing. Therefore, `Document.new("<!--")`
raises the `undefined method `[]' for nil` error, for example.

This also adds tests for "malformed comment" checks.
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
@kou kou merged commit b5bf109 into ruby:master Jun 13, 2024
61 checks passed
@kou
Copy link
Member

kou commented Jun 13, 2024

Good catch.

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.

2 participants