summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2014-05-30 15:21:56 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2014-05-30 15:21:56 +0000
commit51c910379e88ec29a0dd6e5075af4af8441b497e (patch)
tree759a18ae23175a578413eb5b3778e624f0b9b91c /qpid/cpp/bindings
parent69c5657ff0ec747bfa49c3f3cb758ef45a3d6017 (diff)
downloadqpid-python-51c910379e88ec29a0dd6e5075af4af8441b497e.tar.gz
QPID-5794: Fix the regex in spout.rb
In Ruby > 1.8 the regular expression worked as is. But in 1.8 it requires that the braces be escaped. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1598629 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
-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