aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rexml/parsers/baseparser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb
index 0f1480b07d..6cddf6fc2c 100644
--- a/lib/rexml/parsers/baseparser.rb
+++ b/lib/rexml/parsers/baseparser.rb
@@ -346,7 +346,7 @@ module REXML
md = @source.match( COMMENT_PATTERN, true )
case md[1]
- when /--/, /-$/
+ when /--/, /-\z/
raise REXML::ParseException.new("Malformed comment", @source)
end