Skip to content

Commit 874e388

Browse files
MDX without spaces between "SELECT" and expression fix
1 parent de46551 commit 874e388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/js/MDXParser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ MDXParser.prototype.drillDown = function (mdx, filter, expression) {
4343
return "";
4444
}
4545

46-
var parts = mdx.split(/(select)(.*?)(from)/ig); // split by SELECT queries
46+
var parts = mdx.split(/(select\s*)(.*?)(\s*from)/ig); // split by SELECT queries
4747

4848
if (parts.length < 4) {
4949
this._warnMDX(mdx);

0 commit comments

Comments
 (0)