Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/commands/dev-env-sync-sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ async function extractSiteUrls( sqlFile: string ): Promise< string[] > {
return new Promise( ( resolve, reject ) => {
const urls: Set< string > = new Set();
readInterface.on( 'line', line => {
const url = findSiteHomeUrl( line );
let url = findSiteHomeUrl( line );
if ( url ) {
url = url.replace( /\/$/, '' );
urls.add( url );
}
} );
Expand Down Expand Up @@ -209,7 +210,7 @@ export class DevEnvSyncSQLCommand {
const url = site?.homeUrl;
if ( ! url ) continue;

const strippedUrl = stripProtocol( url );
const strippedUrl = stripProtocol( url ).replace( /\/$/, '' );
if ( ! this.searchReplaceMap[ strippedUrl ] ) continue;

const domain = new URL( url ).hostname;
Expand Down