Skip to content

Commit b30ed6f

Browse files
committed
Merge pull request #18 from joeldrapper/master
Improved regex for removing roles
2 parents bdb04cd + 1815cdd commit b30ed6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = (robot) ->
8787
user.roles.push(newRole)
8888
msg.reply "OK, #{name} has the '#{newRole}' role."
8989

90-
robot.respond /@?(.+) do(n't|esn't|es)( not)? have (["'\w: -_]+) role/i, (msg) ->
90+
robot.respond /@?(.+) do(n['’]t|esn['’]t|es)( not)? have (["'\w: -_]+) role/i, (msg) ->
9191
unless robot.auth.isAdmin msg.message.user
9292
msg.reply "Sorry, only admins can remove roles."
9393
else

0 commit comments

Comments
 (0)