Ticket #2279: jquery-4763-trim.diff
| File jquery-4763-trim.diff, 457 bytes (added by DarkRyder, 4 years ago) |
|---|
-
core.js
1114 1114 }, 1115 1115 1116 1116 trim: function( text ) { 1117 return (text || "").replace( /^\s+|\s+$/g, "" ); 1117 var text = (text || "").replace(/^\s\s*/, ''), 1118 ws = /\s/, 1119 i = text.length; 1120 while ( ws.test(text.charAt(--i)) ); 1121 return text.slice(0, i + 1); 1118 1122 }, 1119 1123 1120 1124 makeArray: function( array ) {
