Don't strip all spaces. fixes #1899

git-svn-id: https://develop.svn.wordpress.org/trunk@3147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-18 09:30:19 +00:00
parent 2ec4d8bd55
commit f19c9252cd

View File

@ -307,12 +307,12 @@ function myPload( str ) {
for( x=0; x < str.length; x++) {
andy = str.charAt(x);
if ( comma.indexOf(andy) != -1 ) {
currentElement = currentElement.replace(new RegExp('^\\s*(.*?)\\s*$', ''), '$1'); // trim
fixedExplode[count] = currentElement;
currentElement = "";
count++;
} else {
if ( ' ' != andy )
currentElement += andy;
currentElement += andy;
}
}