Fix: columns with multiple spaces were not showing correctly

This commit is contained in:
Arik Fraimovich 2013-10-30 17:45:26 +02:00
parent 31e904c21a
commit c8d1780ee8

View File

@ -141,13 +141,13 @@
var parts = column.split('::');
var name = parts[1];
if (parts[0] != '') {
name = parts[0].replace(' ', '_').replace(/\?/g,'');
name = parts[0].replace(/ /g, '_').replace(/\?/g,'');
}
return name;
}
QueryResult.prototype.getColumnFriendlyName = function (column) {
return this.getColumnCleanName(column).replace('_', ' ').replace(/(?:^|\s)\S/g, function (a) {
return this.getColumnCleanName(column).replace(/_/g, ' ').replace(/(?:^|\s)\S/g, function (a) {
return a.toUpperCase();
});
}