git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
628e156
)
Fix regexp for $.trim so it doesn't whack embedded spaces.
author
Dave Methvin
<dave.methvin@gmail.com>
Sun, 6 Dec 2009 02:02:15 +0000
(10:02 +0800)
committer
John Resig
<jeresig@gmail.com>
Sun, 6 Dec 2009 02:31:57 +0000
(10:31 +0800)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
4949d6b
..
2968d8d
100644
(file)
--- 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|\u00A0)+|(\s|\u00A0)+$/g,
+ rtrim = /^(\s|\u00A0)+|(\s|\u00A0)+$/g,
// Match a standalone tag
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,