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:
parent
a0b9e7c1a1
commit
139a251324
|
@ -307,12 +307,12 @@ function myPload( str ) {
|
||||||
for( x=0; x < str.length; x++) {
|
for( x=0; x < str.length; x++) {
|
||||||
andy = str.charAt(x);
|
andy = str.charAt(x);
|
||||||
if ( comma.indexOf(andy) != -1 ) {
|
if ( comma.indexOf(andy) != -1 ) {
|
||||||
|
currentElement = currentElement.replace(new RegExp('^\\s*(.*?)\\s*$', ''), '$1'); // trim
|
||||||
fixedExplode[count] = currentElement;
|
fixedExplode[count] = currentElement;
|
||||||
currentElement = "";
|
currentElement = "";
|
||||||
count++;
|
count++;
|
||||||
} else {
|
} else {
|
||||||
if ( ' ' != andy )
|
currentElement += andy;
|
||||||
currentElement += andy;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue