Don't strip all spaces. fixes #1899

git-svn-id: http://svn.automattic.com/wordpress/trunk@3147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-18 09:30:19 +00:00
parent a0b9e7c1a1
commit 139a251324
1 changed files with 2 additions and 2 deletions

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;
}
}