summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-08-19 13:16:39 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-08-19 13:16:39 +0100
commitac111d4e9c7a1f37e25c1f81c72820be03b52d8a (patch)
treea7662895c83b78c2a365b63ba9815de593022ea8
parent2d72c4d556f63f11eaa91a3d1b068e59636eb5fc (diff)
downloadrabbitmq-server-ac111d4e9c7a1f37e25c1f81c72820be03b52d8a.tar.gz
Use string tokens, not re:splitbug23150
-rw-r--r--src/rabbit_exchange_type_topic.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_exchange_type_topic.erl b/src/rabbit_exchange_type_topic.erl
index 89b2441e..e796acf3 100644
--- a/src/rabbit_exchange_type_topic.erl
+++ b/src/rabbit_exchange_type_topic.erl
@@ -67,7 +67,7 @@ publish(#exchange{name = Name}, Delivery =
Delivery).
split_topic_key(Key) ->
- re:split(Key, "\\.", [{return, list}]).
+ string:tokens(binary_to_list(Key), ".").
topic_matches(PatternKey, RoutingKey) ->
P = split_topic_key(PatternKey),