Skip to content

Commit

Permalink
Titles with colons were breaking into too many pieces in the header p…
Browse files Browse the repository at this point in the history
…arser"
  • Loading branch information
peterkeen committed Dec 19, 2011
1 parent 678e0e0 commit a4fb363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page.rb
Expand Up @@ -38,7 +38,7 @@ def parse_page
def parse_headers(header_text)
@headers = {}
header_text.split("\n").each do |header|
name, value = header.split(/:\s+/)
name, value = header.split(/:\s+/, 2)
@headers[name.downcase] = value
end
end
Expand Down

0 comments on commit a4fb363

Please sign in to comment.