Showing the changes to lib/docs (1 of 2 files). Show all
Unified · Split
| @@ -11,7 +11,7 @@ module Docs · 10 unmodified lines | ||
| 11 | 11 | private |
| 12 | 12 | |
| 13 | 13 | def document? |
| 14 | − @content =~ /\A\s*<!doctype/i | |
| 14 | + @content =~ /\A\s*<(?:\!doctype|html)/i | |
| 15 | 15 | end |
| 16 | 16 | |
| 17 | 17 | def parse_as_document |