   robot.respond /nrdb (.*)\b/i, (msg) ->
     nrdb(msg)
 
-  robot.respond /nrdbq (.*)/i, (msg) ->
+  robot.respond /nrdbq (.*)\b/i, (msg) ->
     nrdbq(msg)

          console.log e
          console.log e.stack
          msg.send "Error parsing response from NetRunner DB"

nrdbq = (msg) ->
  q = msg.match[1]
  url = "http://netrunner.delarosa.io/search/"
  concatUrl = "#{url}#{q}"
  msg.http(concatUrl)
    .get() (err, res, body) ->
      if err
        console.log err
      content = JSON.parse body
      if content.length == 0
        msg.send "No matches found for #{q}"
      else
        content.forEach (c) ->
          formatNRDBResponse(msg, c, {})


fetchCard = (msg) ->

#
# Commands:
#  hubot ancur {query} - responds with card info from ANCUR and shows a url
#  hubot nrdb {card_name} - responds with card info from netrunner db
#  hubot nrdb {card_name} -l - responds with list of first 10 matches
#  hubot nrdb {card_name} -n - responds with only card image, no text
#  hubot nrdbq {card_attribute} {query} - responds with card info from netrunner db
#  hubot nrdbq {card_attribute} {query} -l - responds with list of first 10 matches
#  hubot nrdbq {card_attribute} {query} -n - responds with only card image, no text
#
# Author:
#  omardelarosa
