Skip to content

Commit c58556c

Browse files
Drillthrought MDX parsing fix
1 parent b4940b0 commit c58556c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.8.4",
4+
"version": "1.8.5",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/MDXParser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ MDXParser.prototype.drillDown = function (mdx, filter, expression) {
112112
*/
113113
MDXParser.prototype.drillThrough = function (basicMDX, filters) {
114114

115-
var cubeAndFilters = basicMDX.split(/(FROM\s*\[[^\]]*].*)/i)[1],
115+
var cubeAndFilters = basicMDX.slice(basicMDX.lastIndexOf("FROM ")),
116116
query = "DRILLTHROUGH SELECT " + cubeAndFilters;
117117

118118
for (var i in filters) {

0 commit comments

Comments
 (0)