From b7ce9c5a870c86cd993a8db99aa961510df56864 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 9 Nov 2005 13:42:05 +0000 Subject: assert_tag uses exact matches for string conditions, instead of partial matches. Use regex to do partial matches. #2799 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/vendor/html-scanner/html/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb index f3e8eb1a22..4f02e2d421 100644 --- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb +++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb @@ -497,7 +497,7 @@ module HTML #:nodoc: def match_condition(value, condition) case condition when String - value && value.index(condition) + value && value == condition when Regexp value && value.match(condition) when Numeric -- cgit v1.2.3