1
0
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:
MoyuScript 2013-01-02 10:40:56 -06:00
parent 2ccab4d275
commit 3da27482a3

@ -17,7 +17,7 @@ _html2canvas.Util = {};
_html2canvas.Util.trimText = (function(native){
return function(input){
if(native) { return native.apply( input ); }
else { return ((input || '') + '').replace( /^\s+|\s+$/ , '' ); }
else { return ((input || '') + '').replace( /^\s+|\s+$/g , '' ); }
};
})( String.prototype.trim );