From bf0c277ad6af3749f40506c3ec7dbbab6946a911 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 8 Oct 2013 13:08:57 +0000 Subject: [PATCH] Change sep. char to comma for YT merge [Close #589] --- modules/youtube/youtube.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/youtube/youtube.js b/modules/youtube/youtube.js index 32fe0d7..50ea949 100644 --- a/modules/youtube/youtube.js +++ b/modules/youtube/youtube.js @@ -43,7 +43,7 @@ var youtube = function(dbot) { var link = v.link[0].href.match(this.LinkRegex)[2]; event.reply(dbot.t('yt_video', { 'title': v.title['$t'], - 'plays': v['yt$statistics'].viewCount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1 "), + 'plays': v['yt$statistics'].viewCount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"), 'author': v.author[0].name['$t'], 'likes': v['yt$rating'].numLikes, 'dislikes': v['yt$rating'].numDislikes, @@ -84,7 +84,7 @@ var youtube = function(dbot) { callback(dbot.t('yt_video', { 'title': v.title['$t'], - 'plays': v['yt$statistics'].viewCount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1 "), + 'plays': v['yt$statistics'].viewCount.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,"), 'author': v.author[0].name['$t'], 'likes': v['yt$rating'].numLikes, 'dislikes': v['yt$rating'].numDislikes,