We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 050f5f6 commit 6b57716Copy full SHA for 6b57716
src/commands/dev-env-sync-sql.ts
@@ -45,7 +45,7 @@ function stripProtocol( url: string ): string {
45
* @return Site home url. null if not found
46
*/
47
function findSiteHomeUrl( sql: string ): string | null {
48
- const regex = /(['"])(?:siteurl|home)\1,\s?\1([Hh][Tt][Tt][Pp][Ss]?:\/\/.+?)\1/;
+ const regex = /(['"])(?:siteurl|home)\1,\s*\1([Hh][Tt][Tt][Pp][Ss]?:\/\/.+?)\1/;
49
const url = regex.exec( sql )?.[ 2 ] ?? '';
50
try {
51
const parsed = new URL( url );
0 commit comments