Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
philliphenslee committed Sep 25, 2017
2 parents d424006 + de7e9a2 commit 9a20b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function SmartSlack(options) {
var accessToken = options.token;

// Need a valid Slack token to authenticate
if (typeof accessToken !== 'string' || !accessToken.match(/^([a-z]{4})-([0-9]{11})-([0-9a-zA-Z]{24})$/)) {
if (typeof accessToken !== 'string' || !accessToken.match(/^([a-z]{4})-([0-9]{11,12})-([0-9a-zA-Z]{24})$/)) {
throw new Error(errors.invalid_token);
}

Expand Down Expand Up @@ -450,4 +450,4 @@ SmartSlack.prototype._sendToType = function (slackType, typeName, text, callback
callback(new TypeError(errors.invalid_entity_type));
};

module.exports = SmartSlack;
module.exports = SmartSlack;

0 comments on commit 9a20b46

Please sign in to comment.