RandomSec/main/webapp/scripts/util/string.js
2010-05-28 23:19:08 +00:00

3 lines
96 B
JavaScript

String.prototype.trim = function() {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
};