lib/ably/rest/client.rb in ably-0.8.9 vs lib/ably/rest/client.rb in ably-0.8.10

- old
+ new

@@ -118,10 +118,10 @@ def initialize(options) raise ArgumentError, 'Options Hash is expected' if options.nil? options = options.clone if options.kind_of?(String) - options = if options.match(/^[\w]{2,}\.[\w]{2,}:[\w]{2,}$/) + options = if options.match(/^[\w-]{2,}\.[\w-]{2,}:[\w-]{2,}$/) { key: options } else { token: options } end end