lib/bunny_mock/exchanges/topic.rb in bunny-mock-1.2.2 vs lib/bunny_mock/exchanges/topic.rb in bunny-mock-1.3.0
- old
+ new
@@ -1,10 +1,9 @@
# frozen_string_literal: true
module BunnyMock
module Exchanges
class Topic < BunnyMock::Exchange
-
# @private
# @return [String] Multiple subdomain wildcard
MULTI_WILDCARD = '#'
# @private
@@ -23,10 +22,9 @@
# @param [String] key Routing key
#
# @api public
#
def deliver(payload, opts, key)
-
# escape periods with backslash for regex
key = key.gsub('.', '\.')
# replace single wildcards with regex for a single domain
key = key.gsub(SINGLE_WILDCARD, '(?:\w+)')