CSS refactorings and pad-is-not-pinned work

This commit is contained in:
Caleb James DeLisle
2017-12-07 19:00:13 +01:00
parent 67f8031beb
commit 617c4b6044
20 changed files with 210 additions and 230 deletions

View File

@@ -93,7 +93,7 @@ define(req, function(Util, Default, Language) {
var text = messages[key];
if (typeof(text) === 'string') {
return text.replace(/\{(\d+)\}/g, function (str, p1) {
return argArray[p1] || null;
return typeof(argArray[p1]) === 'string' ? argArray[p1] : '';
});
} else {
return text;