File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
packages/database/src/core/util/libs Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -178,13 +178,12 @@ export const parseDatabaseURL = function(
178
178
domain = 'localhost' ;
179
179
} else {
180
180
const dotInd = host . indexOf ( '.' ) ;
181
- if ( dotInd === - 1 ) {
182
- return ; // Not a valid URL.
181
+ if ( dotInd !== - 1 ) {
182
+ // Normalize namespaces to lowercase to share storage / connection.
183
+ subdomain = host . substring ( 0 , dotInd ) . toLowerCase ( ) ;
184
+ namespace = subdomain ;
185
+ domain = host . substring ( dotInd + 1 ) ;
183
186
}
184
- // Normalize namespaces to lowercase to share storage / connection.
185
- subdomain = host . substring ( 0 , dotInd ) . toLowerCase ( ) ;
186
- namespace = subdomain ;
187
- domain = host . substring ( dotInd + 1 ) ;
188
187
}
189
188
// Always treat the value of the `ns` as the namespace name if it is present.
190
189
if ( 'ns' in queryParams ) {
You can’t perform that action at this time.
0 commit comments