diff options
author | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-30 10:21:56 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-30 10:22:18 -0800 |
commit | 17955cacf4e8c618ca5c2b09b0d2f43df353f683 (patch) | |
tree | f2772bfdc093dd2fde15b5fa943641cea2f0ed41 /src/core.js | |
parent | 84857abefce7b5ec4f4018caf98d7d61e952789f (diff) | |
download | jquery-17955cacf4e8c618ca5c2b09b0d2f43df353f683.tar.gz jquery-17955cacf4e8c618ca5c2b09b0d2f43df353f683.zip |
Fixes $.trim for closes #4980
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 3ba2a859d..bdc6b2f5e 100644 --- a/src/core.js +++ b/src/core.js @@ -29,7 +29,7 @@ var jQuery = function( selector, context ) { rnotwhite = /\S/, // Used for trimming whitespace - rtrim = /^\s+|\s+$/g, + rtrim = /(\s|\u00A0)+|(\s|\u00A0)+$/g, // Match a standalone tag rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/, |