diff --git a/extensions/blocks/calendly/edit.js b/extensions/blocks/calendly/edit.js index 19cd627fe9698..e841717f8befe 100644 --- a/extensions/blocks/calendly/edit.js +++ b/extensions/blocks/calendly/edit.js @@ -44,7 +44,7 @@ const getUrlAndStyleFromEmbedCode = embedCode => { }; } - urlFromRegex = embedCode.match( / *Calendly\.initPopupWidget\({* url: *["']?([^"']*)/i ); + urlFromRegex = embedCode.match( / *Calendly\.initPopupWidget\({ *url: *["']?([^"']*)/i ); if ( urlFromRegex && urlFromRegex[ 1 ] && urlFromRegex[ 1 ].indexOf( 'http' ) === 0 ) { return { style: 'link', @@ -52,7 +52,7 @@ const getUrlAndStyleFromEmbedCode = embedCode => { }; } - urlFromRegex = embedCode.match( / *Calendly\.initBadgeWidget\({* url: *["']?([^"']*)/i ); + urlFromRegex = embedCode.match( / *Calendly\.initBadgeWidget\({ *url: *["']?([^"']*)/i ); if ( urlFromRegex && urlFromRegex[ 1 ] && urlFromRegex[ 1 ].indexOf( 'http' ) === 0 ) { return { style: 'link',