Conditional comments should allow periods.

git-svn-id: svn://hamptoncatlin.com/haml/branches/edge@168 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2006-11-26 23:40:19 +00:00
parent 1082ac7a65
commit 2381911347
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ module Haml
# Renders an XHTML comment.
def render_comment(line)
conditional, content = line.scan(/\/(\[[a-zA-Z0-9 ]*\])?(.*)/)[0]
conditional, content = line.scan(/\/(\[[a-zA-Z0-9 \.]*\])?(.*)/)[0]
content = content.strip
try_one_line = !content.empty?
push_silent "_hamlout.open_comment(#{try_one_line}, #{conditional.inspect}, #{@output_tabs})"