summaryrefslogtreecommitdiff
path: root/src
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
commit2928694569f07c9a93325b3078c27cb9a018ea5f (patch)
treea7662895c83b78c2a365b63ba9815de593022ea8 /src
parent1ae16773ac66b5e81ca95ca2080285e7639ff984 (diff)
downloadrabbitmq-server-git-2928694569f07c9a93325b3078c27cb9a018ea5f.tar.gz
Use string tokens, not re:split
Diffstat (limited to 'src')
-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 89b2441e38..e796acf327 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),