Skip to content

Commit

Permalink
Gutenberg: Ensure link is a minimum of 61 characters.
Browse files Browse the repository at this point in the history
See #13.
  • Loading branch information
r-a-y committed Apr 13, 2020
1 parent 0629656 commit 005634d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions block.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
return false;
}

if ( link.length < 60 ) {
return false;
}

return link;
}

Expand Down

0 comments on commit 005634d

Please sign in to comment.