From b03cf78f5b2a3dfaedc9d1f1d16bf8045a85e5a8 Mon Sep 17 00:00:00 2001 From: hcatlin Date: Sun, 2 Jul 2006 02:10:54 +0000 Subject: [PATCH] Now can handle tags with numbers in them... like %h1 git-svn-id: svn://hamptoncatlin.com/haml/trunk@4 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/haml.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/haml.rb b/lib/haml.rb index 6ca2adf3..2822be18 100644 --- a/lib/haml.rb +++ b/lib/haml.rb @@ -75,7 +75,7 @@ module HAML end def render_tag(line) - line.scan(/[%]([-_a-z]+)([-_a-z.\#]*)([=]?)([^\n]*)/).each do |tag_name, attributes, action, value| + line.scan(/[%]([-_a-z0-9]+)([-_a-z.\#]*)([=]?)([^\n]*)/).each do |tag_name, attributes, action, value| val = template_eval(value) attribute_hash = parse_attributes(attributes) attribute_hash.merge!(val) && val = nil if val.class == Hash