1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

*Really* allowing all proper classes and ids this time.

git-svn-id: svn://hamptoncatlin.com/haml/branches/edge@104 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2006-10-30 05:24:28 +00:00
parent eb8bf4c688
commit 5d9c510928
2 changed files with 4 additions and 4 deletions

View file

@ -115,7 +115,7 @@ module Haml
# that can then be merged with another attributes hash.
def parse_class_and_id(list)
attributes = {}
list.scan(/([#.])([-a-zA-Z_()]+)/) do |type, property|
list.scan(/([#.])([-_a-zA-Z0-9]+)/) do |type, property|
case type
when '.'
if attributes[:class]

View file

@ -18,9 +18,9 @@
<div class='foo-bar'>b</div>
<div class='foo_bar'>c</div>
<div class='FOOBAR'>d</div>
<div class='foo'>e</div>
<div>f</div>
<div class='foo'>g</div>
<div class='foo16'>e</div>
<div class='123'>f</div>
<div class='foo2u'>g</div>
</div>
<div class='broken'>
<foo><{ :a => :b }</foo>