From 2750f2ee00771109b2b254c8d03c5669d9f5bd59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 9 May 2011 17:08:59 +0200 Subject: Fix failing test. --- activesupport/lib/active_support/xml_mini.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb index 5cadcf634b..6e12404ad4 100644 --- a/activesupport/lib/active_support/xml_mini.rb +++ b/activesupport/lib/active_support/xml_mini.rb @@ -141,7 +141,7 @@ module ActiveSupport def _dasherize(key) # $2 must be a non-greedy regex for this to work left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1,3] - "#{left}#{middle.tr('_', '-')}#{right}" + "#{left}#{middle.tr('_ ', '--')}#{right}" end # TODO: Add support for other encodings -- cgit v1.2.3