]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: fix cut and paste error in previous commit
authorpablozg <pablozg@gmail.com>
Fri, 8 Jun 2018 10:22:52 +0000 (12:22 +0200)
committerperexg <perex@perex.cz>
Fri, 8 Jun 2018 10:25:02 +0000 (12:25 +0200)
src/webui/static/app/dvr.js

index 3ef310cb64e1f752a16f1ce0defdc60f59872bee..28054900c81fad70f32f6d07feb3ec4660806301 100644 (file)
@@ -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;
 };