From: pablozg Date: Fri, 8 Jun 2018 10:22:52 +0000 (+0200) Subject: webui: fix cut and paste error in previous commit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610c6fa74ac0483c3025e0fe513993ab6a0ec75f;p=thirdparty%2Ftvheadend.git webui: fix cut and paste error in previous commit --- diff --git a/src/webui/static/app/dvr.js b/src/webui/static/app/dvr.js index 3ef310cb6..28054900c 100644 --- a/src/webui/static/app/dvr.js +++ b/src/webui/static/app/dvr.js @@ -17,7 +17,7 @@ tvheadend.labelFormattingParser = function(description) { .replace(/\[\/I\]/g, '<\/i>') .replace(/\[UPPERCASE\](.*)\[\/UPPERCASE\]/g, function(match, group) {return group.toUpperCase();}) .replace(/\[LOWERCASE\](.*)\[\/LOWERCASE\]/g, function(match, group) {return group.toLowerCase();}) - .replace(/\[CAPITALIZE\](.*)\[\/CAPITALIZE\]/g, function(match, group) {return group.split(/\s/).map(w => w[0].toUpperCase() w.slice(1)).join(' ');}); + .replace(/\[CAPITALIZE\](.*)\[\/CAPITALIZE\]/g, function(match, group) {return group.split(/\s+/).map(w => w[0].toUpperCase() + w.slice(1)).join(' ');}); }else return description; };