fix publish profile with connection string ending in semicolon not loading (#14797)

This commit is contained in:
Kim Santiago
2021-03-19 13:17:51 -07:00
committed by GitHub
parent ce39b4bd19
commit d658af153d
3 changed files with 11 additions and 5 deletions

View File

@@ -67,7 +67,8 @@ export class SqlConnectionDataSource extends DataSource {
// TODO: do we have a common construct for connection strings?
this.connectionString = connectionString;
for (const component of this.connectionString.split(';')) {
const components = this.connectionString.split(';').filter(c => c !== '');
for (const component of components) {
const split = component.split('=');
if (split.length !== 2) {