mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
trimText regexp needs /g
This commit is contained in:
parent
57d6003b65
commit
85706166cc
@ -17,7 +17,7 @@ _html2canvas.Util = {};
|
|||||||
_html2canvas.Util.trimText = (function(native){
|
_html2canvas.Util.trimText = (function(native){
|
||||||
return function(input){
|
return function(input){
|
||||||
if(native) { return native.apply( input ); }
|
if(native) { return native.apply( input ); }
|
||||||
else { return ((input || '') + '').replace( /^\s+|\s+$/ , '' ); }
|
else { return ((input || '') + '').replace( /^\s+|\s+$/g , '' ); }
|
||||||
};
|
};
|
||||||
})( String.prototype.trim );
|
})( String.prototype.trim );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user