Skip to content

Commit

Permalink
Update lib/rexml/parsers/baseparser.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Sutou Kouhei <[email protected]>
  • Loading branch information
makenowjust and kou authored Jun 12, 2024
1 parent 175d125 commit 870c275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rexml/parsers/baseparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def pull_event
if md.nil?
raise REXML::ParseException.new("Unclosed comment", @source)
end
if md[1] =~ /--|-\z/
if /--|-\z/.match?(md[1])
raise REXML::ParseException.new("Malformed comment", @source)
end
return [ :comment, md[1] ]
Expand Down

0 comments on commit 870c275

Please sign in to comment.