Skip to content

Commit

Permalink
Account for Gutenberg
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarssanchez committed Feb 13, 2020
1 parent ebfaa1a commit 762ee05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/src/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@

// Sanitize the IDs we need
var sanitizeIds = function( id ) {
return id.replace( /\D/g, '' );
if( 0 === id.indexOf( 'ref:' ) ) {
return id;
} else {
return id.replace( /\D/g, '' );
}
};

/**
Expand Down

0 comments on commit 762ee05

Please sign in to comment.