mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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++) {
|
||||
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…
x
Reference in New Issue
Block a user