History

Fix Docs::Parse#document? when document has no doctype

Thibaut Courouble committed 10 years ago

Commit d366e141 parent 56d93982 files · +4 −1Browse files

Showing the changes to lib/docs (1 of 2 files). Show all

Unified · Split

lib/docs/core/parser.rb+1−1
@@ -11,7 +11,7 @@ module Docs · 10 unmodified lines
1111 private
1212
1313 def document?
14− @content =~ /\A\s*<!doctype/i
14+ @content =~ /\A\s*<(?:\!doctype|html)/i
1515 end
1616
1717 def parse_as_document