Skip to content

Commit

Permalink
sanitize element names in preprocess step
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 25, 2017
1 parent 11cf3f9 commit 4fe20fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/dom/preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const preprocessors = {
if ( isComponent ) {
node._state = getChildState( state );
} else {
const name = block.getUniqueName( node.name );
const name = block.getUniqueName( node.name.replace( /[^a-zA-Z0-9_$]/g, '_' ) );

node._state = getChildState( state, {
isTopLevel: false,
Expand Down

0 comments on commit 4fe20fb

Please sign in to comment.