Skip to content

Commit

Permalink
Allow non-https URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Aug 4, 2017
1 parent c21f4b8 commit d80dd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/library/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ registerBlockType(
{
type: 'pattern',
trigger: 'paste',
regExp: /^\s*(https:\/\/\S+)\s*/i,
regExp: /^\s*(https?:\/\/\S+)\s*/i,
transform: ( { match } ) => {
return createBlock( 'core/embed', {
url: match[ 1 ],
Expand Down

0 comments on commit d80dd50

Please sign in to comment.