Changeset 120

Show
Ignore:
Timestamp:
03/17/2007 10:11:34 (21 months ago)
Author:
why
Message:
  • lib/hpricot/elements.rb: the attribute predicate regexp was just going off and eating a bunch of extra exp...
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/hpricot/elements.rb

    r119 r120  
    200200    end 
    201201 
    202     ATTR_RE = %r!\[ *(?:(@)([\w\(\)-]+)|([\w\(\)-]+\(\))) *([~\!\|\*$\^=]*) *'?"?([^'"]*)'?"? *\]!i 
     202    ATTR_RE = %r!\[ *(?:(@)([\w\(\)-]+)|([\w\(\)-]+\(\))) *([~\!\|\*$\^=]*) *'?"?([^\]'"]*)'?"? *\]!i 
    203203    BRACK_RE = %r!(\[) *([^\]]*) *\]+!i 
    204204    FUNC_RE = %r!(:)?([a-zA-Z0-9\*_-]*)\( *[\"']?([^ \)]*?)['\"]? *\)!