diff options
| author | Darryl L. Pierce <mcpierce@apache.org> | 2014-05-30 15:21:56 +0000 |
|---|---|---|
| committer | Darryl L. Pierce <mcpierce@apache.org> | 2014-05-30 15:21:56 +0000 |
| commit | 51c910379e88ec29a0dd6e5075af4af8441b497e (patch) | |
| tree | 759a18ae23175a578413eb5b3778e624f0b9b91c /qpid/cpp/bindings | |
| parent | 69c5657ff0ec747bfa49c3f3cb758ef45a3d6017 (diff) | |
| download | qpid-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.rb | 4 |
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 |
