Skip to content

Commit e5bf5ea

Browse files
committed
m
1 parent 343b1f4 commit e5bf5ea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Binary file not shown.

packages/database/src/core/util/libs/parser.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,10 @@ export const parseDatabaseURL = function(
181181
if (dotInd === -1) {
182182
return; // Not a valid URL.
183183
}
184-
const hostFirstPart = host.substring(0, dotInd);
185-
domain = host.substring(dotInd + 1);
186184
// Normalize namespaces to lowercase to share storage / connection.
187-
subdomain = hostFirstPart.toLowerCase();
185+
subdomain = host.substring(0, dotInd).toLowerCase();
188186
namespace = subdomain;
187+
domain = host.substring(dotInd + 1);
189188
}
190189
// Always treat the value of the `ns` as the namespace name if it is present.
191190
if ('ns' in queryParams) {

0 commit comments

Comments
 (0)