Skip to content

Commit

Permalink
Remove a workaround for an old IronRuby bug that has been fixed long …
Browse files Browse the repository at this point in the history
…ago.
  • Loading branch information
nrk committed Jul 17, 2010
1 parent 0864720 commit 8265e8d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/hpricot/elements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,8 @@ def remove_class name = nil

def self.filter(nodes, expr, truth = true)
until expr.empty?
# TODO: temporary workaround, needed until the bug #22518 (http://is.gd/jhaf) is fixed in IronRuby
break unless (matchData = expr.match(/^(?:#{ATTR_RE}|#{BRACK_RE}|#{FUNC_RE}|#{CUST_RE}|#{CATCH_RE})/))
_, *m = matchData.to_a
#_, *m = *expr.match(/^(?:#{ATTR_RE}|#{BRACK_RE}|#{FUNC_RE}|#{CUST_RE}|#{CATCH_RE})/)
#break unless _
_, *m = *expr.match(/^(?:#{ATTR_RE}|#{BRACK_RE}|#{FUNC_RE}|#{CUST_RE}|#{CATCH_RE})/)
break unless _

expr = $'
m.compact!
Expand Down

0 comments on commit 8265e8d

Please sign in to comment.