Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change construction of mention text to conform to new HipChat @ menti…

…on standards
  • Loading branch information...
commit 9688b99c38c156719aa0b26f0d4fe200a2f396d6 1 parent 23b59bf
@amcclosky amcclosky authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/hipchat.coffee
View
2  src/hipchat.coffee
@@ -26,7 +26,7 @@ class HipChat extends Adapter
console.log "Options:", @options
bot = new Wobot(jid: @options.jid, name: @options.name, password: @options.password, debug: @options.debug == 'true', host: @options.host)
- mention = new RegExp("@#{@options.name.split(' ')[0]}\\b", "i")
+ mention = new RegExp("@#{@options.name.replace(' ', '')}\\b", "i")
console.log mention
console.log "Bot:", bot
Please sign in to comment.
Something went wrong with that request. Please try again.