Skip to content

Commit

Permalink
Strip intermediate spaces from 'bender-ckeditor-plugins' tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Jan 8, 2018
1 parent 4ceca74 commit bee66ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ module.exports = {
}

// If there was a previous value, add the new one after a coma.
parent[ current ] = parent[ current ] ? `${ parent[ current ] }, ${ value }` : value;
parent[ current ] = parent[ current ] ? `${ parent[ current ] },${ value }` : value;
}

// Remove spaces from plugins tag.
if ( result.ckeditor && result.ckeditor.plugins ) {
result.ckeditor.plugins = result.ckeditor.plugins.replace( /\s+/g, '' );
}

// Parse 'global' tag.
Expand Down

0 comments on commit bee66ae

Please sign in to comment.