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:
parent
5449c6a566
commit
5e97cafaaa
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ module Fog
|
|||
def identity
|
||||
return nil unless href
|
||||
|
||||
match = href.match(/\A.*\/queues\/[a-zA-Z0-9_-]{0,64}\/messages\/(?<id>.+?)(?:\?|\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
|
||||
|
||||
|
|
Loading…
Reference in a new issue