Skip to content

Commit 6b57716

Browse files
sjinksCopilot
andauthored
fix: apply code review suggestions
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 050f5f6 commit 6b57716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/dev-env-sync-sql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function stripProtocol( url: string ): string {
4545
* @return Site home url. null if not found
4646
*/
4747
function findSiteHomeUrl( sql: string ): string | null {
48-
const regex = /(['"])(?:siteurl|home)\1,\s?\1([Hh][Tt][Tt][Pp][Ss]?:\/\/.+?)\1/;
48+
const regex = /(['"])(?:siteurl|home)\1,\s*\1([Hh][Tt][Tt][Pp][Ss]?:\/\/.+?)\1/;
4949
const url = regex.exec( sql )?.[ 2 ] ?? '';
5050
try {
5151
const parsed = new URL( url );

0 commit comments

Comments
 (0)