diff --git a/src/Angular.js b/src/Angular.js index 305f132176e4..dfacef032d65 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -457,7 +457,7 @@ var trim = (function() { // TODO: we should move this into IE/ES5 polyfill if (!String.prototype.trim) { return function(value) { - return isString(value) ? value.replace(/^\s*/, '').replace(/\s*$/, '') : value; + return isString(value) ? value.replace(/^\s\s*/, '').replace(/\s\s*$/, '') : value; }; } return function(value) {