message: Adjust regex for detecting mentions to be less greedy
diff: @@ -190,7 +190,7 @@ function Sparkbot(configuration) {
  if (message.html) {
  // strip the mention & HTML from the message
  - var pattern = new RegExp('^(\<p\>)?\<spark\-mention .*?data\-object\-id\=\"' + controller.identity.id + '\".*\>.*?\<\/spark\-mention\>', 'im');
  + var pattern = new RegExp('^(\<p\>)?\<spark\-mention .*?data\-object\-id\=\"' + controller.identity.id + '\".*?\>.*?\<\/spark\-mention\>', 'im');
  if (!message.html.match(pattern)) {
  var encoded_id = controller.identity.id;
  var decoded = new Buffer(encoded_id, 'base64').toString('ascii');
  @@ -198,7 +198,7 @@ function Sparkbot(configuration) {
  // this should look like ciscospark://us/PEOPLE/<id string>
  var matches;
  if (matches = decoded.match(/ciscospark\:\/\/.*\/(.*)/im)) {
  - pattern = new RegExp('^(\<p\>)?\<spark\-mention .*?data\-object\-id\=\"' + matches[1] + '\".*\>.*?\<\/spark\-mention\>', 'im');
  + pattern = new RegExp('^(\<p\>)?\<spark\-mention .*?data\-object\-id\=\"' + matches[1] + '\".*?\>.*?\<\/spark\-mention\>', 'im');
  }
  }
  var action = message.html.replace(pattern, '');
  