diff options
author | Jamis Buck <jamis@37signals.com> | 2005-11-09 13:42:05 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-11-09 13:42:05 +0000 |
commit | b7ce9c5a870c86cd993a8db99aa961510df56864 (patch) | |
tree | 4f22de07fdc16f8d32c310b7eeade6727f91beb1 /actionpack/lib/action_controller/vendor/html-scanner | |
parent | bc7ec23f4ef9ee5f8a8e7ec7b17af6652e4d438e (diff) | |
download | rails-b7ce9c5a870c86cd993a8db99aa961510df56864.tar.gz rails-b7ce9c5a870c86cd993a8db99aa961510df56864.tar.bz2 rails-b7ce9c5a870c86cd993a8db99aa961510df56864.zip |
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
Diffstat (limited to 'actionpack/lib/action_controller/vendor/html-scanner')
-rw-r--r-- | actionpack/lib/action_controller/vendor/html-scanner/html/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |