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:
parent
2ec4d8bd55
commit
f19c9252cd
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user