mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Fix: columns with multiple spaces were not showing correctly
This commit is contained in:
parent
31e904c21a
commit
c8d1780ee8
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user