Fixed typo with regex link detection

This commit is contained in:
benji7425 2016-10-31 23:45:11 +00:00
parent 6feaf49a97
commit 6515e32901
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ Dns.resolve("discordapp.com", function (err) {
bot.on("message", function (user, userID, channelID, message) {
//check if the message is a link, cache it if it is
if (new RegExp(linkRegExp.test(message))){
if (linkRegExp.test(message)){
logEvent("Detected user posted link: " + message);
cacheLink(Uri.withinString(message, function (url) { return url; }));
}