Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eraac committed Feb 5, 2020
1 parent 3cefec6 commit a05e34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bigquery_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default class BigQueryQuery {
? q.match(/(\$__timeGroupAlias\(([\w._]+,)).*?(?=\))/g)
: q.match(/(\$__timeGroup\(([\w_.]+,)).*?(?=\))/g);
if (res) {
interval[0] = res[0].split(",")[1];
interval[1] = res[0].split(",")[2];
interval[0] = res[0].split(",")[1].trim();
interval[1] = res[0].split(",")[2].trim();
}
return interval;
}
Expand Down

0 comments on commit a05e34d

Please sign in to comment.