Skip to content

Commit

Permalink
MDX without spaces between "SELECT" and expression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Dec 3, 2014
1 parent de46551 commit 874e388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/MDXParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 874e388

Please sign in to comment.