Skip to content

Commit

Permalink
Fix non-div tag block validations
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcafferkey authored and ockham committed Jun 5, 2024
1 parent 3a412e1 commit 31fb923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blocks/src/api/parser/fix-custom-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function fixVariationClassname( blockAttributes, blockType, innerHTML ) {

if ( ! hasVariationClassName ) {
return innerHTML.replace(
/(<div\s+class=")([^"]*)"/,
/(<\w+\s+class=")([^"]*)"/,
`$1$2 ${ variationClassName }"`
);
}
Expand Down

0 comments on commit 31fb923

Please sign in to comment.