From 874e38893705fe8c47aa8f3a83b1667d316f2a39 Mon Sep 17 00:00:00 2001 From: ZitRos Date: Wed, 3 Dec 2014 22:38:05 +0200 Subject: [PATCH] MDX without spaces between "SELECT" and expression fix --- source/js/MDXParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/MDXParser.js b/source/js/MDXParser.js index d0661eb..453d2b9 100644 --- a/source/js/MDXParser.js +++ b/source/js/MDXParser.js @@ -43,7 +43,7 @@ MDXParser.prototype.drillDown = function (mdx, filter, expression) { return ""; } - var parts = mdx.split(/(select)(.*?)(from)/ig); // split by SELECT queries + var parts = mdx.split(/(select\s*)(.*?)(\s*from)/ig); // split by SELECT queries if (parts.length < 4) { this._warnMDX(mdx);