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/core/parser.rb (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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t