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

Commit e02dcd2

Browse files
authored
Merge pull request #114 from doitintl/issue-113
Fixes #113
2 parents 2e5524d + b9e04c2 commit e02dcd2

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

dist/module.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51734,7 +51734,11 @@ function () {
5173451734

5173551735
if (this.target.timeColumn === "-- time --") {
5173651736
var myRegexp = /\$__timeFilter\(([\w_.]+)\)/g;
51737-
this.target.timeColumn = myRegexp.exec(q)[1];
51737+
var tf = myRegexp.exec(q);
51738+
51739+
if (tf !== null) {
51740+
this.target.timeColumn = tf[1];
51741+
}
5173851742
}
5173951743

5174051744
var range = BigQueryQuery.quoteFiledName(this.target.timeColumn) + " BETWEEN " + from + " AND " + to;

dist/module.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bigquery_query.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,10 @@ export default class BigQueryQuery {
534534
}
535535
if (this.target.timeColumn === "-- time --") {
536536
const myRegexp = /\$__timeFilter\(([\w_.]+)\)/g;
537-
this.target.timeColumn = myRegexp.exec(q)[1];
537+
const tf = myRegexp.exec(q);
538+
if (tf !== null) {
539+
this.target.timeColumn = tf[1];
540+
}
538541
}
539542
const range =
540543
BigQueryQuery.quoteFiledName(this.target.timeColumn) +

0 commit comments

Comments
 (0)