Skip to content
Permalink
Browse files

Merge branch 't/9604'

  • Loading branch information
Reinmar committed Nov 13, 2012
2 parents 95b8f98 + e26a46d commit a13e7c5cc60c75ec6721ea2822ea7df0924dda68
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/editor.js
@@ -378,14 +378,14 @@

if ( extraPlugins ) {
// Remove them first to avoid duplications.
var removeRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)', 'g' );
plugins = plugins.replace( removeRegex, '' );
var extraRegex = new RegExp( '(?:^|,)(?:' + extraPlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)', 'g' );
plugins = plugins.replace( extraRegex, '' );

plugins += ',' + extraPlugins;
}

if ( removePlugins ) {
removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)', 'g' );
var removeRegex = new RegExp( '(?:^|,)(?:' + removePlugins.replace( /\s*,\s*/g, '|' ) + ')(?=,|$)', 'g' );
plugins = plugins.replace( removeRegex, '' );
}

0 comments on commit a13e7c5

Please sign in to comment.
You can’t perform that action at this time.