From ea893be393d971af26bd384d80e2d8264b2311d1 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 14 Apr 2012 12:01:52 +0100 Subject: [PATCH] change shorten length to 65 --- modules/autoshorten.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/autoshorten.js b/modules/autoshorten.js index ac0ac7b..3f5c92a 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -8,7 +8,7 @@ var autoshorten = function(dbot) { var urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; var urlMatches = data.message.match(urlRegex); - if(urlMatches !== null && urlMatches[0].length > 45) { + if(urlMatches !== null && urlMatches[0].length > 65) { var url = urlMatches[0]; // Only doing one, screw you. // TODO: Make this use a decent URL shortener. Mine is shit.