Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Fix regex for matching queue names.
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed May 22, 2012
1 parent 4493838 commit d3510c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/queue.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ queue.sync = (socket) ->
callback null, queue(id)
else
dbInfo.listCollections (collections) ->
queues = ({name: q.replace(/^queue_/, '')} for q in collections when q.match(/queue_/))
queues = ({name: q.replace(/^queue_/, '')} for q in collections when q.match(/^queue_/))
callback null, queues

socket.on 'sync::read::queue_entry', (data, callback) =>
Expand Down

0 comments on commit d3510c5

Please sign in to comment.