From 5e97cafaaac814e7a51971dffa3b88691d7d49b0 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Mon, 7 Apr 2014 13:17:49 -0500 Subject: [PATCH] don't use named capture groups for ruby 1.8.7 compatibility --- lib/fog/rackspace/models/queues/message.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/rackspace/models/queues/message.rb b/lib/fog/rackspace/models/queues/message.rb index fabb6db49..9e6ca265b 100644 --- a/lib/fog/rackspace/models/queues/message.rb +++ b/lib/fog/rackspace/models/queues/message.rb @@ -32,8 +32,8 @@ module Fog def identity return nil unless href - match = href.match(/\A.*\/queues\/[a-zA-Z0-9_-]{0,64}\/messages\/(?.+?)(?:\?|\z)/i) - match ? match['id'] : nil + match = href.match(/\A.*\/queues\/[a-zA-Z0-9_-]{0,64}\/messages\/(.+?)(?:\?|\z)/i) + match ? match[1] : nil end alias :id :identity