Changeset 89

Show
Ignore:
Timestamp:
12/22/2006 23:41:29 (2 years ago)
Author:
why
Message:
  • lib/hpricot/elements.rb: slight improvement to the xpath parser. i really need to write the thing in ragel and make it real, huh?
Files:
1 modified

Legend:

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

    r87 r89  
    194194    ATTR_RE = %r!\[ *(@)([a-zA-Z0-9\(\)_-]+) *([~\!\|\*$\^=]*) *'?"?([^'"]*)'?"? *\]!i 
    195195    BRACK_RE = %r!(\[) *([^\]]*) *\]!i 
    196     FUNC_RE = %r!(:)?([a-zA-Z0-9\*_-]*)\( *[\"']?([^ \)'\"]*)['\"]? *\)! 
     196    FUNC_RE = %r!(:)?([a-zA-Z0-9\*_-]*)\( *[\"']?([^ \)]*?)['\"]? *\)! 
    197197    CATCH_RE = %r!([:\.#]*)([a-zA-Z0-9\*_-]+)! 
    198198