Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #197 from Eraac/master
Browse files Browse the repository at this point in the history
support space in __timeGroupXxx argument
  • Loading branch information
avivl authored Feb 6, 2020
2 parents 3cefec6 + 82ba540 commit a7909ea
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] ? res[0].split(",")[1].trim() : res[0].split(",")[1];
interval[1] = res[0].split(",")[2] ? res[0].split(",")[2].trim() : res[0].split(",")[2];
}
return interval;
}
Expand Down

0 comments on commit a7909ea

Please sign in to comment.