Making OpenLayers.String.trim work for multiline strings. Thanks etdube for the patch. r=me (closes #2034)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -67,7 +67,7 @@ OpenLayers.String = {
|
||||
* trailing spaces removed.
|
||||
*/
|
||||
trim: function(str) {
|
||||
return str.replace(/^\s*(.*?)\s*$/, "$1");
|
||||
return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user