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
11 private11 private
12 12
13 def document?13 def document?
14 @content =~ /\A\s*<!doctype/i14 @content =~ /\A\s*<(?:\!doctype|html)/i
15 end15 end
16 16
17 def parse_as_document17 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