@malloydata/malloy 0.0.15-dev221209192619 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/malloy.js +4 -3
- package/package.json +1 -1
package/dist/malloy.js
CHANGED
|
@@ -451,12 +451,13 @@ class PreparedQuery {
|
|
|
451
451
|
}
|
|
452
452
|
exports.PreparedQuery = PreparedQuery;
|
|
453
453
|
function parseTableURI(tableURI) {
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
454
|
+
const parts = tableURI.match(/^([^:]*):(.*)$/);
|
|
455
|
+
if (parts) {
|
|
456
|
+
const [, firstPart, secondPart] = parts;
|
|
456
457
|
return { connectionName: firstPart, tablePath: secondPart };
|
|
457
458
|
}
|
|
458
459
|
else {
|
|
459
|
-
return { tablePath:
|
|
460
|
+
return { tablePath: tableURI };
|
|
460
461
|
}
|
|
461
462
|
}
|
|
462
463
|
exports.parseTableURI = parseTableURI;
|