1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

don't use named capture groups for ruby 1.8.7 compatibility

This commit is contained in:
Jeffrey C. Ollie 2014-04-07 13:17:49 -05:00
parent 5449c6a566
commit 5e97cafaaa

View file

@ -32,8 +32,8 @@ module Fog
def identity def identity
return nil unless href return nil unless href
match = href.match(/\A.*\/queues\/[a-zA-Z0-9_-]{0,64}\/messages\/(?<id>.+?)(?:\?|\z)/i) match = href.match(/\A.*\/queues\/[a-zA-Z0-9_-]{0,64}\/messages\/(.+?)(?:\?|\z)/i)
match ? match['id'] : nil match ? match[1] : nil
end end
alias :id :identity alias :id :identity