diff --git a/src/features/exporter/js/exporter.js b/src/features/exporter/js/exporter.js index 54b9f3b95e..162e0b4252 100755 --- a/src/features/exporter/js/exporter.js +++ b/src/features/exporter/js/exporter.js @@ -1653,7 +1653,13 @@ function defaultExporterFieldCallback(grid, row, col, value) { // fix to handle cases with 'number : 1' or 'date:MM-dd-YYYY', etc.. We needed to split the string if (col.cellFilter) { - return $filter(col.cellFilter.split(': ')[0].trim())(value); + var args, filter, arg1, arg2; + // remove space, single/double to mantein retro-compatibility + args = col.cellFilter.replace(/[\'\"\s]/g, "").split(':'); + filter = args[0] ? args[0] : null; + arg1 = args[1] ? args[1] : null; + arg2 = args[2] ? args[2] : null; + return $filter(filter)(value, arg1, arg2); } else { return value; }