Skip to content

Commit

Permalink
Merge pull request #7 from ExpressenAB/fix-braedgaard
Browse files Browse the repository at this point in the history
fixes braedgaard
  • Loading branch information
jimmycallin authored Dec 2, 2019
2 parents 0643f0b + f658b54 commit f328aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function connect(url, options, connCallback) {
function bindQueue(queue, exchange, key, args, bindCallback) {
bindCallback = bindCallback || function () {};
if (!exchanges[exchange]) return bindCallback("Bind to non-existing exchange " + exchange);
const re = "^" + key.replace(".", "\\.").replace("#", "(\\w|\\.)+").replace("*", "\\w+") + "$";
const re = "^" + key.replace(".", "\\.").replace("#", "(\\S)+").replace("*", "\\w+") + "$";
exchanges[exchange].bindings.push({regex: new RegExp(re), queueName: queue});
bindCallback();
}
Expand Down

0 comments on commit f328aba

Please sign in to comment.