summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qpid/cpp/bindings/qpid/ruby/examples/spout.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/bindings/qpid/ruby/examples/spout.rb b/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
index ab5ecf47a2..fbab69f6a8 100644
--- a/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
+++ b/qpid/cpp/bindings/qpid/ruby/examples/spout.rb
@@ -109,9 +109,9 @@ options[:address] = ARGV[0] unless ARGV[0].nil?
# process the connection options
unless options[:connection_options].nil?
- fields = options[:connection_options].gsub(/^{(.*)}$/, '\1')
+ fields = options[:connection_options].gsub(/^\{(.*)\}$/, '\1')
# remove any surrounding braces
- if /{.*}/ =~ fields
+ if /\{.*\}/ =~ fields
fields = fields[1..-2]
end
# break up the options separated by commas